2024-10-20 01:50:24 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
# Boot drives:
|
|
|
|
imports = [
|
2024-10-20 17:40:44 +02:00
|
|
|
./disks.nix
|
2024-10-20 01:50:24 +02:00
|
|
|
];
|
2024-10-20 17:40:44 +02:00
|
|
|
boot.swraid.enable = true;
|
2024-10-20 01:50:24 +02:00
|
|
|
|
|
|
|
# ZFS Data pool:
|
|
|
|
environment.systemPackages = with pkgs; [ zfs ];
|
|
|
|
boot = {
|
|
|
|
zfs = {
|
|
|
|
extraPools = [ "tank" ];
|
|
|
|
requestEncryptionCredentials = false;
|
|
|
|
};
|
|
|
|
supportedFilesystems = [ "zfs" ];
|
|
|
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
|
|
};
|
|
|
|
services.zfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
interval = "Wed *-*-8..14 00:00:00";
|
|
|
|
};
|
|
|
|
|
|
|
|
# NFS Exports:
|
|
|
|
#TODO
|
|
|
|
|
|
|
|
# NFS Import mounts:
|
|
|
|
#TODO
|
|
|
|
}
|