Add jellyfin, move mountpoints
This commit is contained in:
47
hosts/voyager/filesystems.nix
Normal file
47
hosts/voyager/filesystems.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
# Boot drives are defined in ./hardware-configuration.nix
|
||||
|
||||
environment.systemPackages = with pkgs; [ cifs-utils ];
|
||||
|
||||
# Local zfs
|
||||
boot = {
|
||||
zfs.extraPools = [ "tank" ];
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
};
|
||||
services.zfs.autoScrub.enable = true;
|
||||
|
||||
# Network mounts (import)
|
||||
fileSystems = {
|
||||
"/mnt/feal-syn1/media" = {
|
||||
device = "feal-syn1.home.feal.no:/volume2/media";
|
||||
fsType = "nfs";
|
||||
options = [ "vers=3" ];
|
||||
#options = [ "x-systemd.automount" "noauto" ];
|
||||
};
|
||||
#"/mnt/feal-syn1/netbackup" = {
|
||||
# device = "feal-syn1.home.feal.no:/volume2/NetBackup";
|
||||
# fsType = "nfs";
|
||||
# options = [ "vers=3" "x-systemd.automount" "noauto" ];
|
||||
#};
|
||||
#"/mnt/feal-syn1/nfs_proxmox" = {
|
||||
# device = "feal-syn1.home.feal.no:/volume2/nfs_proxmox";
|
||||
# fsType = "nfs";
|
||||
# options = [ "vers=3" "x-systemd.automount" "noauto" ];
|
||||
#};
|
||||
|
||||
"/mnt/feal-syn1/nfs_proxmox" = {
|
||||
device = "//feal-syn1.home.feal.no/nfs_proxmox";
|
||||
fsType = "cifs";
|
||||
options = let
|
||||
# this line prevents hanging on network split
|
||||
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
|
||||
in ["${automount_opts},credentials=/etc/feal-syn1-credentials"];
|
||||
};
|
||||
};
|
||||
|
||||
# Network mounts (export)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user