75 lines
1.6 KiB
Nix
75 lines
1.6 KiB
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
emmc = {
|
||
|
device = "/dev/mmcblk0";
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
size = "64M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "zroot";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
ssd = {
|
||
|
device = "/dev/nvme0n1";
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
zfs = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "zfs";
|
||
|
pool = "zroot";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
zpool = {
|
||
|
zroot = {
|
||
|
type = "zpool";
|
||
|
rootFsOptions = {
|
||
|
ashift = "12";
|
||
|
compression = "zstd";
|
||
|
mountpoint = "none";
|
||
|
atime = "off";
|
||
|
};
|
||
|
datasets = {
|
||
|
root_fs = {
|
||
|
type = "zfs_fs";
|
||
|
mountpoint = "/";
|
||
|
options.mountpoint = "legacy";
|
||
|
};
|
||
|
nix_fs = {
|
||
|
type = "zfs_fs";
|
||
|
mountpoint = "/nix";
|
||
|
options.mountpoint = "legacy";
|
||
|
};
|
||
|
nfs_fs = {
|
||
|
type = "zfs_fs";
|
||
|
mountpoint = "/srv/nfs";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|