diff options
author | Silas Schöffel <sils@sils.li> | 2024-12-17 23:35:29 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-12-17 23:35:29 +0100 |
commit | d264474db7be068afe29879f05bb42edfc85f40e (patch) | |
tree | 0cb89a665533999304198cc125bd04d2927f1535 | |
parent | initrd.systemd: reenable (diff) | |
download | nix-config-d264474db7be068afe29879f05bb42edfc85f40e.tar.gz nix-config-d264474db7be068afe29879f05bb42edfc85f40e.zip |
nixvim: add lsp hover keybinding
-rw-r--r-- | flake/nixosConfigurations/default.nix | 1 | ||||
-rw-r--r-- | hm/nixvim/config.nix | 5 | ||||
-rw-r--r-- | hosts/hplappi.nix | 90 |
3 files changed, 96 insertions, 0 deletions
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix index 7b678f2..2961eb9 100644 --- a/flake/nixosConfigurations/default.nix +++ b/flake/nixosConfigurations/default.nix @@ -54,6 +54,7 @@ in { #thinklappi = mkNixosHost "x86_64-linux" ../../hosts/thinklappi.nix; #schrotti = mkNixosHost "x86_64-linux" ../../hosts/schrotti.nix; hpserver = mkNixosHost "x86_64-linux" ../../hosts/hpserver.nix; + hplappi = mkNixosHost "x86_64-linux" ../../hosts/hplappi.nix; thinklappi-bootstrap = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; diff --git a/hm/nixvim/config.nix b/hm/nixvim/config.nix index eeb29ff..58753b0 100644 --- a/hm/nixvim/config.nix +++ b/hm/nixvim/config.nix @@ -131,6 +131,11 @@ pkgs: { ltex.enable = true; java_language_server.enable = true; }; + keymaps = { + lspBuf = { + "<S-h>" = "hover"; + }; + }; }; lspkind = { enable = true; diff --git a/hosts/hplappi.nix b/hosts/hplappi.nix new file mode 100644 index 0000000..1e3dd45 --- /dev/null +++ b/hosts/hplappi.nix @@ -0,0 +1,90 @@ +{config, ...}: { + role.sils = "laptop"; + sils = { + disks.enable = false; + meta = { + bootPart = "/dev/disk/by-uuid/4064-2D6C"; + globalDataDir = "/srv"; + hostname = "hplappi"; + mainDisk = "/dev/disk/by-uuid/68da1329-f5ea-4f2c-a38e-faffaaaa6b5a"; + rootPart = "/dev/disk/by-uuid/6700d662-29a9-4ea5-8ca6-85d42550b3ab"; + system = "x86_64-linux"; + }; + }; + home-manager.backupFileExtension = "backup"; + + boot = { + initrd = { + luks.devices."cryptroot" = { + crypttabExtraOpts = ["fido2-device=auto"]; + device = config.sils.meta.rootPart; + }; + }; + resumeDevice = config.sils.meta.mainDisk; + kernelParams = ["resume_offset=369403136"]; + }; + + fileSystems = { + "/" = { + device = "tmpfs"; + fsType = "tmpfs"; + options = ["defaults" "size=2G" "mode=755"]; + }; + "/tmp" = { + device = "tmpfs"; + fsType = "tmpfs"; + options = ["defaults" "size=5G" "mode=755"]; + }; + "/nix" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=nix" "compress-force=zstd"]; + }; + "/etc/NetworkManager" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=networkmanagerconfig" "compress-force=zstd"]; + }; + "/etc/secureboot" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=secureboot" "compress-force=zstd"]; + }; + "/etc/nixos" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=nixconfig" "compress-force=zstd"]; + }; + "/srv" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=srv" "compress-force=zstd"]; + neededForBoot = true; + }; + "/swap" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=swap" "noatime"]; + }; + "/home" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=home" "compress-force=zstd"]; + }; + "/srv/snapshots" = { + device = config.sils.meta.mainDisk; + fsType = "btrfs"; + options = ["subvol=snapshots" "compress-force=zstd"]; + }; + "/boot" = { + device = config.sils.meta.bootPart; + fsType = "vfat"; + }; + }; + + swapDevices = [ + { + device = "/swap/swapfile"; + } + ]; +} |