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,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;
};
};
}