test
This commit is contained in:
parent
528e26d8e6
commit
686e610ab2
2 changed files with 14 additions and 5 deletions
nixos/hosts/nixos-vm-02
|
@ -3,8 +3,7 @@
|
||||||
# This machine won't be using secureboot
|
# This machine won't be using secureboot
|
||||||
../../common/modules/boot.nix
|
../../common/modules/boot.nix
|
||||||
# Testing swap
|
# Testing swap
|
||||||
../nixos-framework/disks.nix
|
./disks.nix
|
||||||
# ./disks.nix
|
|
||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,11 @@
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
} # partition 1
|
} # partition 1 (ESP)
|
||||||
{
|
{
|
||||||
name = "LUKS";
|
name = "LUKS";
|
||||||
start = "550MiB";
|
start = "550MiB";
|
||||||
end = "100%";
|
end = "-64GiB";
|
||||||
content = {
|
content = {
|
||||||
type = "luks";
|
type = "luks";
|
||||||
name = "ROOT";
|
name = "ROOT";
|
||||||
|
@ -50,7 +50,17 @@
|
||||||
}; # subvolumes
|
}; # subvolumes
|
||||||
}; # content.content
|
}; # content.content
|
||||||
}; # content
|
}; # content
|
||||||
} # partition 2
|
} # partition 2 (/ BTRFS)
|
||||||
|
{
|
||||||
|
name = "SWAP";
|
||||||
|
start = "-64GiB";
|
||||||
|
end = "100%";
|
||||||
|
content = {
|
||||||
|
type = "swap";
|
||||||
|
randomEncryption = true;
|
||||||
|
resumeDevice = true; # resume from hiberation from this device
|
||||||
|
};
|
||||||
|
} # partition 3 (SWAP)
|
||||||
]; # partitions
|
]; # partitions
|
||||||
}; # content
|
}; # content
|
||||||
}; # disko.devices.disk.sda
|
}; # disko.devices.disk.sda
|
||||||
|
|
Loading…
Add table
Reference in a new issue