refactor: switch from using UUIDs for filesystems to partlabels. Requires partition modifications on hosts before rebuild
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{ _, ... }:
|
||||
{
|
||||
# RECOMMENDED BTRFS SUBVOLUME LAYOUT
|
||||
# /home
|
||||
# /home/.snapshots (needed if snapper on home dir to be enabled)
|
||||
# /srv
|
||||
# /var/lib/portables
|
||||
# /var/lib/machines
|
||||
# /tmp
|
||||
# /var/tmp
|
||||
#
|
||||
# REQUIRED PARTLABELS (can be set in parted or other tools NOT!!! FILESYSTEM LABEL!)
|
||||
# / - NIXOS
|
||||
# /boot - ESP
|
||||
# swap - SWAP
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-partlabel/NIXOS";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-partlabel/ESP";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-partlabel/SWAP"; }
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{ _, ... }:
|
||||
{
|
||||
# REQUIRED PARTLABELS (can be set in parted or other tools NOT!!! FILESYSTEM LABEL!)
|
||||
# / - NIXOS
|
||||
# /boot - ESP
|
||||
# swap - SWAP
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-partlabel/NIXOS";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-partlabel/ESP";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-partlabel/SWAP"; }
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user