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 /hosts | |
parent | initrd.systemd: reenable (diff) | |
download | nix-config-d264474db7be068afe29879f05bb42edfc85f40e.tar.gz nix-config-d264474db7be068afe29879f05bb42edfc85f40e.zip |
nixvim: add lsp hover keybinding
Diffstat (limited to '')
-rw-r--r-- | hosts/hplappi.nix | 90 |
1 files changed, 90 insertions, 0 deletions
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"; + } + ]; +} |