big restructure, getting there prayers for rebuild

This commit is contained in:
2025-10-13 21:29:04 -05:00
parent 9128bf3d66
commit c02dafd0d1
26 changed files with 82 additions and 63 deletions

View File

@@ -0,0 +1,28 @@
{
pkgs,
config,
lib,
...
}:
# define nfs exports
let
cfg = config.modules.fileshare.nfs;
nfs_exports = ''
/holocron/media *(ro,sync,no_subtree_check)
'';
#/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
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;
};
};
};
}