2025-04-09 15:27:53 -05:00
|
|
|
{
|
|
|
|
|
disko.devices = {
|
2025-04-09 15:55:54 -05:00
|
|
|
disk = {
|
2025-04-27 14:53:57 -05:00
|
|
|
x = {
|
2025-04-27 15:20:27 -05:00
|
|
|
device = "/dev/nvme0n1";
|
2025-04-09 15:55:54 -05:00
|
|
|
type = "disk";
|
|
|
|
|
content = {
|
2025-04-27 15:20:27 -05:00
|
|
|
type = "gpt";
|
2025-04-09 15:55:54 -05:00
|
|
|
partitions = {
|
2025-04-27 14:53:57 -05:00
|
|
|
# boot
|
2025-04-09 15:55:54 -05:00
|
|
|
ESP = {
|
2025-06-12 17:50:20 -05:00
|
|
|
size = "1024M";
|
2025-04-27 15:20:27 -05:00
|
|
|
type = "EF00";
|
2025-04-09 15:55:54 -05:00
|
|
|
content = {
|
|
|
|
|
type = "filesystem";
|
|
|
|
|
format = "vfat";
|
|
|
|
|
mountpoint = "/boot";
|
2025-04-27 15:20:27 -05:00
|
|
|
mountOptions = [ "umask=0077" ];
|
2025-04-09 15:55:54 -05:00
|
|
|
};
|
2025-04-09 15:27:53 -05:00
|
|
|
};
|
2025-04-27 14:53:57 -05:00
|
|
|
# root
|
|
|
|
|
zfs = {
|
2025-04-09 15:55:54 -05:00
|
|
|
size = "100%";
|
|
|
|
|
content = {
|
2025-04-27 14:53:57 -05:00
|
|
|
type = "zfs";
|
|
|
|
|
pool = "zroot";
|
2025-04-09 15:55:54 -05:00
|
|
|
};
|
2025-04-09 15:27:53 -05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-04-27 14:53:57 -05:00
|
|
|
zpool = {
|
|
|
|
|
zroot = {
|
|
|
|
|
type = "zpool";
|
|
|
|
|
rootFsOptions = {
|
|
|
|
|
compression = "zstd";
|
|
|
|
|
"com.sun:auto-snapshot" = "false";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
datasets = {
|
2025-04-27 22:01:25 -05:00
|
|
|
"root" = {
|
2025-04-27 14:59:10 -05:00
|
|
|
type = "zfs_fs";
|
|
|
|
|
options.mountpoint = "/";
|
|
|
|
|
mountpoint = "/";
|
2025-04-27 22:01:25 -05:00
|
|
|
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot/root@blank$' || zfs snapshot zroot/root@blank";
|
2025-04-27 14:59:10 -05:00
|
|
|
};
|
2025-04-27 22:01:25 -05:00
|
|
|
"nix" = {
|
2025-04-27 14:53:57 -05:00
|
|
|
type = "zfs_fs";
|
2025-04-27 16:05:18 -05:00
|
|
|
options.mountpoint = "/nix";
|
|
|
|
|
mountpoint = "/nix";
|
2025-04-27 14:53:57 -05:00
|
|
|
};
|
2025-04-27 22:01:25 -05:00
|
|
|
"persist" = {
|
2025-04-27 14:53:57 -05:00
|
|
|
type = "zfs_fs";
|
2025-04-27 16:05:18 -05:00
|
|
|
options.mountpoint = "/persist";
|
|
|
|
|
mountpoint = "/persist";
|
2025-04-27 14:53:57 -05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-04-09 15:27:53 -05:00
|
|
|
};
|
|
|
|
|
}
|