149 current 2025-10-09 03:59:16 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-09 11:43:03 -05:00
parent 6889344290
commit 6c7a2ecb10
4 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{ pkgs, config, lib, ... }:
# define nfs exports
let
cfg = config.modules.homelab.nfs;
nfs_exports = ''
/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
/holocron/media *(ro,sync,no_subtree_check)
'';
in
{
options.modules.homelab.nfs = {
enable = lib.mkEnableOption "enables nfs";
};
config = lib.mkIf cfg.enable {
# enable nfs with all exports
services.nfs = {
server = {
enable = true;
exports = nfs_exports;
};
};
};
}