Files
nixos-config/hosts/desktop/disko.nix
T
2026-09-10 13:31:28 +02:00

61 lines
1.2 KiB
Nix

{
disko.devices.disk.main = {
type = "disk";
device = "/dev/disk/by-id/ata-Vi550_S3_4935445284600580";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
label="luks";
content = {
type = "luks";
name = "cryptroot";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
subvolumes = {
"/@nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/@persist" = {
mountpoint = "/persist";
mountOptions = [
"compress=zstd"
"noatime"
];
};
};
};
};
};
};
};
};
}