nix-config/hosts/gojo/fs.nix
Patrick Großmann e469eab2b8
feat: adguard home
feat: implement extra module containers
feat: final smb confi
feat: final nextcloud confi
feat: rework networks ip
feat: move acme and ddclient to server
2024-01-11 22:42:03 +01:00

33 lines
694 B
Nix

{
config,
lib,
...
}: {
disko.devices = {
disk = {
ssd = {
type = "disk";
device = "/dev/disk/by-id/${config.secrets.secrets.local.disko.ssd}";
content = with lib.disko.gpt; {
type = "table";
format = "gpt";
partitions = [
(partEfi "boot" "0%" "260MB")
{
name = "rpool";
content = {
type = "zfs";
pool = "rpool";
};
}
];
};
};
};
zpool = with lib.disko.zfs; {
rpool = mkZpool {datasets = impermanenceZfsDatasets;};
};
};
fileSystems."/state".neededForBoot = true;
}