restructured & first test of toggleable config
This commit is contained in:
@@ -18,10 +18,15 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
# enable smb with all shares
|
||||
services.samba = {
|
||||
enable = true;
|
||||
settings = smbShares;
|
||||
options = {
|
||||
homelab.smb.enable = lib.mkEnableOption "enables smb";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homelab.smb.enable {
|
||||
# enable smb with all shares
|
||||
services.samba = {
|
||||
enable = true;
|
||||
settings = smbShares;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user