1
0
Fork 0

Shura: finally land on a working standardized filesystem config

This commit is contained in:
Aires 2024-07-03 11:56:10 -04:00
parent 01b4e6eacf
commit a327ffbb92
2 changed files with 4 additions and 9 deletions

View file

@ -7,6 +7,7 @@
}: }:
let let
bootUUID = "FC20-D155"; # The UUID of the boot partition.
luksUUID = "9fdc521b-a037-4070-af47-f54da03675e4"; # The UUID of the locked LUKS partition. luksUUID = "9fdc521b-a037-4070-af47-f54da03675e4"; # The UUID of the locked LUKS partition.
rootUUID = "dfb4fc8f-e82b-43a1-91c1-a77acb6337cb"; # The UUID of the unlocked filesystem partition. rootUUID = "dfb4fc8f-e82b-43a1-91c1-a77acb6337cb"; # The UUID of the unlocked filesystem partition.
in in
@ -35,7 +36,7 @@ in
aux.system.filesystem.btrfs = { aux.system.filesystem.btrfs = {
enable = true; enable = true;
devices = { devices = {
boot = "/dev/disk/by-uuid/FC20-D155"; boot = "/dev/disk/by-uuid/${bootUUID}";
btrfs = "/dev/disk/by-uuid/${rootUUID}"; btrfs = "/dev/disk/by-uuid/${rootUUID}";
}; };
swapFile = { swapFile = {

View file

@ -7,6 +7,7 @@
... ...
}: }:
let let
bootUUID = "AFCB-D880"; # The UUID of the boot partition.
luksUUID = "bcf67e34-339e-40b9-8ffd-bec8f7f55248"; # The UUID of the locked LUKS partition. luksUUID = "bcf67e34-339e-40b9-8ffd-bec8f7f55248"; # The UUID of the locked LUKS partition.
rootUUID = "b801fbea-4cb5-4255-bea9-a2ce77d1a1b7"; # The UUID of the unlocked filesystem partition. rootUUID = "b801fbea-4cb5-4255-bea9-a2ce77d1a1b7"; # The UUID of the unlocked filesystem partition.
in in
@ -41,7 +42,7 @@ in
aux.system.filesystem.btrfs = { aux.system.filesystem.btrfs = {
enable = true; enable = true;
devices = { devices = {
boot = "/dev/disk/by-uuid/FC20-D155"; boot = "/dev/disk/by-uuid/${bootUUID}";
btrfs = "/dev/disk/by-uuid/${rootUUID}"; btrfs = "/dev/disk/by-uuid/${rootUUID}";
}; };
swapFile = { swapFile = {
@ -50,13 +51,6 @@ in
}; };
}; };
swapDevices = [
{
device = "/swap/swapfile";
size = 16384;
}
];
networking = { networking = {
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's