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