Added vatnajokull NAS as a separate module

This commit is contained in:
marc
2024-02-20 20:22:41 +01:00
parent 32654faf98
commit 95944b2486
5 changed files with 24 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
{ config, lib, pkgs, self, ... }:
let
vatnajokull-ip = "100.89.248.65";
cfg = config.samfelag.modules.server.vatnajokull;
in
{
options.samfelag.modules.server.vatnajokull = {
enable = lib.mkEnableOption "Vatnajokull NAS";
};
config = lib.mkIf cfg.enable {
fileSystems = {
"/mnt/vatnajokull" = {
device = "${vatnajokull-ip}:/mnt/raid1";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
};
};
};
}