restructured & first test of toggleable config
This commit is contained in:
@@ -8,11 +8,17 @@ let
|
||||
'';
|
||||
in
|
||||
{
|
||||
# enable nfs with all exports
|
||||
services.nfs = {
|
||||
server = {
|
||||
enable = true;
|
||||
exports = nfsExports;
|
||||
options = {
|
||||
homelab.nfs.enable = lib.mkEnableOption "enables nfs";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homelab.nfs.enable {
|
||||
# enable nfs with all exports
|
||||
services.nfs = {
|
||||
server = {
|
||||
enable = true;
|
||||
exports = nfsExports;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user