1 { pkgs, hostName, ... }:
4 ../../nixos/profiles/hardware/E5500.nix
5 ../../nixos/profiles/zfs.nix
9 # Avoids huge slow downs, especially with nix.
10 "zfs.zfs_arc_max=${toString (1024 * 1024 * 1024)}" # bytes
13 # Setting the machine-id avoids to reencrypt all credentials
14 # when reinstalling NixOS on a new drive.
15 # Manually generated with : uuidgen | tr -d -
16 environment.etc.machine-id.source = ./machine-id.clear;
18 # The 32-bit host id of the host, formatted as 8 hexadecimal characters.
19 # You should try to make this id unique among your hosts.
20 # Manually generated with : uuidgen | head -c8
21 networking.hostId = "e53001b7";
26 memtest86.enable = true;
30 devices = [ "/dev/disk/by-id/ata-CT250MX500SSD1_2004E2849DD5" ];
33 # Roughly 25MiB (initrd) + 9MiB (kernel) per configuration
34 configurationLimit = 6;
38 #enableCryptodisk = true;
41 boot.zfs.requestEncryptionCredentials = [ "${hostName}/root" ];
43 hardware.enableRedistributableFirmware = true;
45 fileSystems."/boot1" = {
46 device = "/dev/disk/by-partlabel/${hostName}_ssd1_boot";
59 device = "/dev/disk/by-partlabel/${hostName}_ssd1_swap";
62 cipher = "aes-xts-plain64";
63 source = "/dev/urandom";
68 boot.supportedFilesystems = [
74 device = "${hostName}/root";
76 options = [ "zfsutil" ];
78 fileSystems."/nix" = {
79 device = "${hostName}/root/nix";
86 fileSystems."/var" = {
87 device = "${hostName}/root/var";
95 services.pipewire.jack.enable = true;
97 environment.variables = {
98 # Workaround https://github.com/ghostty-org/ghostty/issues/2025#issuecomment-2563222225
99 #GDK_DEBUG = "gl-disable-gles";
100 LIBGL_ALWAYS_SOFTWARE = "true";