Skyler Grey | bcb2cb7 | 2022-08-21 07:24:35 +0100 | [diff] [blame] | 1 | {impermanence, ...}: { |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 2 | imports = [ |
3 | impermanence.nixosModules.impermanence | ||||
4 | ]; | ||||
5 | |||||
6 | config = { | ||||
7 | environment.persistence."/nix/persist" = { | ||||
8 | hideMounts = true; | ||||
9 | }; | ||||
10 | |||||
Skyler Grey | 944dfa2 | 2022-09-01 23:47:48 +0100 | [diff] [blame] | 11 | environment.persistence."/large/persist" = { |
Skyler Grey | b51c0c9 | 2022-08-26 06:50:53 +0100 | [diff] [blame] | 12 | hideMounts = true; |
13 | }; | ||||
14 | |||||
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 15 | fileSystems."/" = { |
16 | device = "none"; | ||||
17 | fsType = "tmpfs"; | ||||
Skyler Grey | b51c0c9 | 2022-08-26 06:50:53 +0100 | [diff] [blame] | 18 | options = ["defaults" "size=20G" "mode=755"]; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 19 | }; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 20 | |
21 | fileSystems."/boot" = { | ||||
Skyler Grey | b51c0c9 | 2022-08-26 06:50:53 +0100 | [diff] [blame] | 22 | device = "/dev/disk/by-label/BOOT"; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 23 | fsType = "vfat"; |
24 | }; | ||||
25 | |||||
26 | fileSystems."/nix" = { | ||||
Skyler Grey | ff3c6a2 | 2022-08-21 07:25:02 +0100 | [diff] [blame] | 27 | device = "/dev/mapper/nix"; |
28 | fsType = "ext4"; | ||||
Skyler Grey | b51c0c9 | 2022-08-26 06:50:53 +0100 | [diff] [blame] | 29 | neededForBoot = true; |
Skyler Grey | ff3c6a2 | 2022-08-21 07:25:02 +0100 | [diff] [blame] | 30 | }; |
31 | |||||
32 | fileSystems."/large" = { | ||||
33 | device = "/dev/mapper/hdd"; | ||||
Skyler Grey | 944dfa2 | 2022-09-01 23:47:48 +0100 | [diff] [blame] | 34 | neededForBoot = true; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 35 | fsType = "ext4"; |
36 | }; | ||||
37 | |||||
38 | swapDevices = [ | ||||
Skyler Grey | ff3c6a2 | 2022-08-21 07:25:02 +0100 | [diff] [blame] | 39 | {device = "/dev/mapper/swap";} |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 40 | ]; |
Skyler Grey | b51c0c9 | 2022-08-26 06:50:53 +0100 | [diff] [blame] | 41 | |
42 | boot.initrd.availableKernelModules = ["nvme"]; | ||||
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 43 | }; |
44 | } |