big restructure, getting there prayers for rebuild fix #4

This commit is contained in:
2025-10-13 21:32:13 -05:00
parent d4eefb864e
commit 7da8407475

View File

@@ -0,0 +1,36 @@
{
pkgs,
config,
lib,
...
}:
# define smb shares
let
cfg = config.modules.fileshare.smb;
smb_shares = {
vault = {
path = "/holocron/vault";
browseable = true;
writable = true;
guestOk = false;
};
media = {
path = "/holocron/media";
browseable = true;
writable = true;
guestOk = false;
};
};
in {
options.modules.homelab.smb = {
enable = lib.mkEnableOption "enables smb";
};
config = lib.mkIf cfg.enable {
# enable smb with all shares
services.samba = {
enable = true;
settings = smb_shares;
};
};
}