mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-02-04 17:20:02 +01:00
27 lines
477 B
Nix
27 lines
477 B
Nix
{ pkgs,... }:
|
|
{
|
|
# Boot drives:
|
|
boot.swraid.enable = true;
|
|
|
|
# ZFS Data pool:
|
|
boot = {
|
|
zfs = {
|
|
extraPools = [ "tank" ];
|
|
requestEncryptionCredentials = false;
|
|
};
|
|
supportedFilesystems.zfs = true;
|
|
# Use stable linux packages, these work with zfs
|
|
kernelPackages = pkgs.linuxPackages;
|
|
};
|
|
services.zfs.autoScrub = {
|
|
enable = true;
|
|
interval = "Wed *-*-8..14 00:00:00";
|
|
};
|
|
|
|
# NFS Exports:
|
|
#TODO
|
|
|
|
# NFS Import mounts:
|
|
#TODO
|
|
}
|