58 lines
1.2 KiB
Nix
Raw Normal View History

2025-05-29 13:06:13 +02:00
{
disko.devices = {
disk = {
main = {
type = "disk";
2025-05-29 20:46:44 +02:00
device = "/dev/sda";
2025-05-29 13:06:13 +02:00
content = {
type = "gpt";
partitions = {
boot = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "tank";
};
};
};
};
};
};
zpool = {
tank = {
type = "zpool";
rootFsOptions = {
compression = "zstd";
};
2025-05-29 14:19:19 +02:00
mountpoint = null;
2025-05-29 15:49:24 +02:00
postCreateHook = "zfs snapshot -r tank@blank && zfs hold -r blank tank@blank";
2025-05-29 13:06:13 +02:00
datasets = {
root = {
type = "zfs_fs";
mountpoint = "/";
};
2025-05-29 14:19:19 +02:00
nix = {
type = "zfs_fs";
mountpoint = "/nix";
};
persist = {
type = "zfs_fs";
mountpoint = "/persist";
};
2025-05-29 13:06:13 +02:00
};
};
};
};
}