nixos-config/hosts/challenger/filesystems.nix

34 lines
723 B
Nix
Raw Normal View History

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 = {
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";
options = [
"defaults"
"noatime"
"rw"
"nfsvers=3"
];
2024-08-06 20:26:27 +02:00
};
};
2024-07-01 23:28:24 +02:00
}