nixos-configuration/hosts/desktop/disko.nix
2025-03-21 02:00:29 +01:00

28 lines
525 B
Nix

{
device ? throw "Set this to your disk device, e.g. /dev/sda",
swap-size ? "0",
encrypted ? false,
lib,
...
}: let
disko-luks = import ../modules/disko/disko-luks.nix;
in {
disko.devices.disk = lib.mergeAttrsList [
{main = disko-luks.devices.disk.main;}
{
hdd = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
main = {
size = "100%";
};
};
};
};
}
];
}