34 lines
723 B
Nix
34 lines
723 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
# Boot drives are defined in ./hardware-configuration.nix
|
|
|
|
environment.systemPackages = with pkgs; [ cifs-utils ];
|
|
|
|
# Local 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";
|
|
};
|
|
|
|
fileSystems = {
|
|
"/mnt/feal-syn1/backup" = {
|
|
device = "feal-syn1.home.feal.no:/volume2/backup";
|
|
fsType = "nfs";
|
|
options = [
|
|
"defaults"
|
|
"noatime"
|
|
"rw"
|
|
"nfsvers=3"
|
|
];
|
|
};
|
|
};
|
|
}
|