flake-update-20260201
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 ../common/services/nfs-mounts.nix
15 ];
16
17 hardware = {
18 enableAllFirmware = true;
19 };
20
21 # FILESYSTEM
22 boot.initrd.luks.devices = {
23 root = {
24 device = "/dev/disk/by-uuid/91b05f64-b97d-4405-8405-8785699ada8f";
25 preLVM = true;
26 allowDiscards = true;
27 keyFile = "/dev/disk/by-id/mmc-SD08G_0x704a5a38";
28 keyFileSize = 4096;
29 };
30 };
31
32 fileSystems."/" = {
33 # device = "/dev/disk/by-uuid/6bedd234-3179-46f7-9a3f-feeffd880791";
34 device = "/dev/mapper/root";
35 fsType = "ext4";
36 options = [
37 "noatime"
38 "discard"
39 ];
40 };
41
42 fileSystems."/boot" = {
43 device = "/dev/disk/by-uuid/32B9-94CC";
44 fsType = "vfat";
45 };
46
47 swapDevices = [ { device = "/dev/disk/by-uuid/24da6a46-cd28-4bff-9220-6f449e3bd8b5"; } ];
48
49 # NFS mounts from rhea and aion
50 services.nfs-mounts.hosts = {
51 rhea = {
52 server = "rhea.sbr.pm";
53 folders = [
54 "audiobooks"
55 "downloads"
56 "ebooks"
57 "music"
58 "pictures"
59 "videos"
60 ];
61 };
62 aion = {
63 server = "aion.sbr.pm";
64 folders = [
65 "audiobooks"
66 "music"
67 ];
68 };
69 };
70}