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

23 lines
479 B
Nix
Raw Normal View History

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