11 ../../nixos/profiles/hardware/T480.nix
12 ../../nixos/profiles/zfs.nix
16 # Setting the machine-id avoids to reencrypt all credentials
17 # when reinstalling NixOS on a new drive.
18 # Manually generated with : uuidgen | tr -d -
19 environment.etc.machine-id.source = ./machine-id.clear;
21 # The 32-bit host id of the host, formatted as 8 hexadecimal characters.
22 # You should try to make this id unique among your hosts.
23 # Manually generated with : uuidgen | head -c8
24 networking.hostId = "e6eba6c4";
31 # Deprecated in nixos-24.11
32 #boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
35 canTouchEfiVariables = true;
36 efiSysMountPoint = "/boot1";
41 # Roughly 25MiB (initrd) + 9MiB (kernel) per configuration
42 configurationLimit = 6;
43 memtest86.enable = true;
45 extraInstallCommands = ''
47 cp -r /efiboot/efi1 /efiboot/efi2
50 # FIXME: needs https://github.com/NixOS/nixpkgs/pull/246897
54 boot.zfs.requestEncryptionCredentials = [ "${hostName}/root" ];
56 hardware.enableRedistributableFirmware = true;
58 services.udev.extraRules = ''
59 ACTION=="add", ATTRS{idVendor}=="5986", ATTRS{idProduct}=="1141", RUN="${pkgs.runtimeShell} -c 'echo 1 >/sys$devpath/remove'"
62 fileSystems."/boot1" = {
63 device = "/dev/disk/by-partlabel/${hostName}_ssd1_boot";
76 device = "/dev/disk/by-partlabel/${hostName}_ssd1_swap";
79 cipher = "aes-xts-plain64";
80 source = "/dev/urandom";
85 boot.supportedFilesystems = [
91 device = "${hostName}/root";
93 options = [ "zfsutil" ];
95 fileSystems."/nix" = {
96 device = "${hostName}/root/nix";
103 fileSystems."/var" = {
104 device = "${hostName}/root/var";
112 services.pipewire.jack.enable = true;