machines/sirius: finalize config

This commit is contained in:
2026-03-06 16:25:41 +07:00
parent 891e80a3a9
commit 1d5a528cd1
6 changed files with 216 additions and 1256 deletions

View File

@@ -1,13 +1,20 @@
{
config,
self,
...
}:
{
imports = [
self.nixosModules.common
./hardware-configuration.nix
];
image.modules.sd-card = {
disabledModules = [
./hardware-configuration.nix
];
};
clan.core.sops.defaultGroups = [ "admins" ];
nixpkgs.hostPlatform = {
@@ -32,4 +39,35 @@
options = "--delete-older-than 15d";
};
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.zfs.extraPools = [ "zdata" ];
boot.supportedFilesystems = [ "zfs" ];
boot.initrd.availableKernelModules = [
"usb_storage"
"sd_mod"
];
fileSystems."/mnt/hdd" = {
device = "zdata/nas";
fsType = "zfs";
mountPoint = "/mnt/hdd";
options = [
"nofail"
"zfsutil"
];
};
fileSystems."/var/lib" = {
device = "zdata/service-data";
fsType = "zfs";
mountPoint = "/var/lib";
options = [
"x-initrd.mount"
"nofail"
"zfsutil"
];
};
}