hosts/Infini-FRAMEWORK: refactor to store uuid

This commit is contained in:
Infinidoge 2021-12-09 14:20:15 -05:00
parent d280ff4ceb
commit 381c76641f

View file

@ -16,7 +16,11 @@ in
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems = { fileSystems =
let
main = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9";
in
{
"/" = { "/" = {
device = "none"; device = "none";
fsType = "tmpfs"; fsType = "tmpfs";
@ -24,21 +28,21 @@ in
}; };
"/persist" = { "/persist" = {
device = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9"; device = main;
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=root" "autodefrag" "noatime" "ssd" ]; options = [ "subvol=root" "autodefrag" "noatime" "ssd" ];
neededForBoot = true; neededForBoot = true;
}; };
"/nix" = { "/nix" = {
device = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9"; device = main;
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=nix" "autodefrag" "noatime" "ssd" ]; options = [ "subvol=nix" "autodefrag" "noatime" "ssd" ];
neededForBoot = true; neededForBoot = true;
}; };
"/boot" = { "/boot" = {
device = uuid "a44af0ff-5667-465d-b80a-1934d1aab8d9"; device = main;
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=boot" "autodefrag" "noatime" "ssd" ]; options = [ "subvol=boot" "autodefrag" "noatime" "ssd" ];
neededForBoot = true; neededForBoot = true;