main
 1{
 2  globals,
 3  inputs,
 4  ...
 5}:
 6{
 7  imports = [
 8    # inputs.disko.nixosModules.diskop # Do this if re-install
 9    # (import ./disks.nix { inherit lib; })
10
11    inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1-gen3
12
13    ../common/hardware/acpid.nix
14    # ../common/hardware/bluetooth.nix
15    ../common/services/nfs-mounts.nix
16  ];
17
18  hardware = {
19    enableAllFirmware = true;
20  };
21
22  # FILESYSTEM
23  boot.initrd.luks.devices = {
24    root = {
25      device = "/dev/disk/by-uuid/91b05f64-b97d-4405-8405-8785699ada8f";
26      preLVM = true;
27      allowDiscards = true;
28      keyFile = "/dev/disk/by-id/mmc-SD08G_0x704a5a38";
29      keyFileSize = 4096;
30    };
31  };
32
33  fileSystems."/" = {
34    # device = "/dev/disk/by-uuid/6bedd234-3179-46f7-9a3f-feeffd880791";
35    device = "/dev/mapper/root";
36    fsType = "ext4";
37    options = [
38      "noatime"
39      "discard"
40    ];
41  };
42
43  fileSystems."/boot" = {
44    device = "/dev/disk/by-uuid/32B9-94CC";
45    fsType = "vfat";
46  };
47
48  swapDevices = [ { device = "/dev/disk/by-uuid/24da6a46-cd28-4bff-9220-6f449e3bd8b5"; } ];
49
50  # NFS mounts from globals defaults (rhea + aion)
51  services.nfs-mounts.hosts = globals.net.nfs.defaultHosts;
52}