2024-07-01 23:28:24 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
# Boot drives are defined in ./hardware-configuration.nix
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ cifs-utils ];
|
|
|
|
|
|
|
|
# Local zfs
|
|
|
|
boot = {
|
2024-07-03 20:51:18 +02:00
|
|
|
zfs = {
|
|
|
|
extraPools = [ "tank" ];
|
|
|
|
requestEncryptionCredentials = false;
|
|
|
|
};
|
2024-07-01 23:28:24 +02:00
|
|
|
supportedFilesystems = [ "zfs" ];
|
|
|
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
|
|
};
|
|
|
|
services.zfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
interval = "Wed *-*-8..14 00:00:00";
|
|
|
|
};
|
|
|
|
|
2024-08-06 20:26:27 +02:00
|
|
|
fileSystems = {
|
|
|
|
"/mnt/feal-syn1/backup" = {
|
|
|
|
device = "feal-syn1.home.feal.no:/volume2/backup";
|
|
|
|
fsType = "nfs";
|
|
|
|
};
|
|
|
|
};
|
2024-07-01 23:28:24 +02:00
|
|
|
}
|