1 { config, lib, pkgs, hostName, ... }:
4 ../../nixos/profiles/hardware/X201.nix
5 ../../nixos/profiles/zfs.nix
6 ../../nixos/profiles/zramSwap.nix
11 canTouchEfiVariables = true;
12 efiSysMountPoint = "/boot/efi";
19 "/dev/disk/by-id/ata-Samsung_SSD_850_PRO_128GB_S1SMNSAFC36436X"
21 configurationLimit = 16;
25 #enableCryptodisk = true;
28 services.udev.extraRules = ''
29 ACTION=="add", SUBSYSTEM=="tty", KERNEL=="ttyUSB*", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9204", RUN+="${pkgs.gobi_loader}/lib/udev/gobi_loader -2000 $env{DEVNAME} /home/julm/documents/thinkpad-x201/gobi"
33 { device = "/dev/disk/by-partlabel/${hostName}_ssd_boot";
36 fileSystems."/boot/efi" =
37 { device = "/dev/disk/by-partlabel/${hostName}_ssd_efi";
41 { device = "/dev/disk/by-partlabel/${hostName}_ssd_swap";
44 cipher = "aes-xts-plain64";
45 source = "/dev/urandom";
50 # The 32-bit host id of the host, formatted as 8 hexadecimal characters.
51 # You should try to make this id unique among your hosts.
52 # Manually generated with : head -c4 /dev/urandom | od -A none -t x4 | cut -d ' ' -f 2
53 networking.hostId = "ce53d0c3";
55 boot.supportedFilesystems = [ "ntfs" "vfat" ];
58 { device = "${hostName}/root";
62 { device = "${hostName}/nix";
66 { device = "${hostName}/var";