From d264474db7be068afe29879f05bb42edfc85f40e Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Tue, 17 Dec 2024 23:35:29 +0100 Subject: nixvim: add lsp hover keybinding --- hosts/hplappi.nix | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 hosts/hplappi.nix (limited to 'hosts') 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"; + } + ]; +} -- cgit 1.4.1