2023-06-05 15:35:26 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.services.az-media-share;
|
|
|
|
in
|
2022-10-17 21:58:03 +02:00
|
|
|
{
|
2023-06-05 15:35:26 +02:00
|
|
|
options = {
|
|
|
|
services.az-media-share.enable = lib.mkEnableOption "Mount the NFS share for with my media.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
fileSystems."/mnt/media" = {
|
|
|
|
device = "10.7.89.108:media";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [ "noatime" "hard" "nfsvers=4.0" ];
|
|
|
|
};
|
2022-10-17 21:58:03 +02:00
|
|
|
};
|
|
|
|
}
|