1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add new host

This commit is contained in:
oddlama 2025-01-12 01:58:27 +01:00
parent 682765cc0b
commit cb7dbab162
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
23 changed files with 208 additions and 0 deletions

33
hosts/sausebiene/fs.nix Normal file
View file

@ -0,0 +1,33 @@
{
config,
lib,
...
}:
let
inherit (config.repo.secrets.local) disks;
in
{
disko.devices = {
disk = {
m2-ssd = {
type = "disk";
device = "/dev/disk/by-id/${disks.m2-ssd}";
content = {
type = "gpt";
partitions = {
efi = lib.disko.gpt.partEfi "1G";
swap = lib.disko.gpt.partSwap "16G";
rpool = lib.disko.gpt.partLuksZfs disks.m2-ssd "rpool" "100%";
};
};
};
};
zpool = {
rpool = lib.disko.zfs.mkZpool {
datasets = lib.disko.zfs.impermanenceZfsDatasets // {
"safe/guests" = lib.disko.zfs.unmountable;
};
};
};
};
}