hosts/Infini-FRAMEWORK: refactor to store uuid
This commit is contained in:
parent
d280ff4ceb
commit
381c76641f
1 changed files with 33 additions and 29 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue