refactor: switch from using UUIDs for filesystems to partlabels. Requires partition modifications on hosts before rebuild
This commit is contained in:
+16
-46
@@ -9,6 +9,7 @@
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
../shared/fs-layouts/single-disk-btrfs.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
@@ -22,58 +23,27 @@
|
||||
];
|
||||
|
||||
initrd.kernelModules = [ ];
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
kernelModules = [ ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/7559f03a-28da-482d-934a-5d4f88ab085f";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
fileSystems."/mnt/fileshare" = {
|
||||
device = "frank@vergil.cfl.rr.com:/mnt/shares";
|
||||
fsType = "sshfs";
|
||||
|
||||
"/home" = {
|
||||
device = "/dev/disk/by-uuid/7559f03a-28da-482d-934a-5d4f88ab085f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
device = "/dev/disk/by-uuid/7559f03a-28da-482d-934a-5d4f88ab085f";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/12B3-D345";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
"/mnt/fileshare" = {
|
||||
device = "frank@vergil.cfl.rr.com:/mnt/shares";
|
||||
fsType = "sshfs";
|
||||
options = [
|
||||
"uid=1000"
|
||||
"gid=1000"
|
||||
"default_permissions"
|
||||
"allow_other"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
"reconnect"
|
||||
"ServerAliveInterval=15"
|
||||
"IdentityFile=/root/.ssh/id_rsa"
|
||||
];
|
||||
};
|
||||
options = [
|
||||
"uid=1000"
|
||||
"gid=1000"
|
||||
"default_permissions"
|
||||
"allow_other"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
"reconnect"
|
||||
"ServerAliveInterval=15"
|
||||
"IdentityFile=${config.sops.secrets.personal_ssh_key_ed25519.path}"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/431e8332-e3d5-400b-93e7-27b9c8dc1dfe"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
hardware = {
|
||||
|
||||
Reference in New Issue
Block a user