disks by-label

This commit is contained in:
Henri Dohmen 2025-05-14 03:31:32 +02:00
parent 1106930891
commit 0ee966419a
2 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,7 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/0d5c4e16-b584-4fa2-989a-17e5264886b0"; device = "/dev/disk/by-label/nixroot";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
"subvol=root" "subvol=root"
@ -36,7 +36,7 @@
}; };
fileSystems."/home" = { fileSystems."/home" = {
device = "/dev/disk/by-uuid/0d5c4e16-b584-4fa2-989a-17e5264886b0"; device = "/dev/disk/by-label/nixroot";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
"subvol=home" "subvol=home"
@ -46,7 +46,7 @@
}; };
fileSystems."/nix" = { fileSystems."/nix" = {
device = "/dev/disk/by-uuid/0d5c4e16-b584-4fa2-989a-17e5264886b0"; device = "/dev/disk/by-label/nixroot";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [
"subvol=nix" "subvol=nix"
@ -56,7 +56,7 @@
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/332B-8C27"; device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat"; fsType = "vfat";
options = [ options = [
"fmask=0022" "fmask=0022"
@ -64,7 +64,7 @@
]; ];
}; };
swapDevices = [ ]; swapDevices = [ { device = "/dev/disk/by-label/nixswap"; } ];
# 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

View file

@ -26,12 +26,12 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/7554858a-648d-47d9-839a-6b66ef2b99d9"; device = "/dev/disk/by-label/nix-fs";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8040-8FF4"; device = "/dev/disk/by-label/NIX-BOOT";
fsType = "vfat"; fsType = "vfat";
options = [ options = [
"fmask=0077" "fmask=0077"
@ -40,7 +40,7 @@
}; };
swapDevices = [ swapDevices = [
{ device = "/dev/disk/by-uuid/9569220a-c151-44ca-a4db-037e63d314be"; } { device = "/dev/disk/by-label/swap"; }
]; ];
# 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