nixos/modules/services/data-share/default.nix

18 lines
429 B
Nix
Raw Normal View History

2023-05-29 15:34:17 +02:00
{ config, lib, ... }:
let
cfg = config.services.az-data-share;
in
2022-01-12 21:57:27 +01:00
{
2023-05-29 15:34:17 +02:00
options = {
services.az-data-share.enable = lib.mkEnableOption "Enable the server data FNS share";
};
config = lib.mkIf cfg.enable {
fileSystems."/mnt/data" = {
device = "10.7.89.108:server_data";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=300" "noatime" "nfsvers=4.0" ];
};
2022-01-12 21:57:27 +01:00
};
}
2023-05-29 15:34:17 +02:00