system instead of services
This commit is contained in:
parent
7cc9f3b9d9
commit
d1d313bc66
1 changed files with 4 additions and 4 deletions
|
@ -3,10 +3,10 @@
|
|||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.mySystem.services.nfs;
|
||||
cfg = config.mySystem.system.nfs;
|
||||
in
|
||||
{
|
||||
options.mySystem.services.nfs = {
|
||||
options.mySystem.system.nfs = {
|
||||
enable = lib.mkEnableOption "nfs";
|
||||
exports = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
|
@ -15,8 +15,8 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.nfs.server.enable = true;
|
||||
services.nfs.server.exports = cfg.exports;
|
||||
system.nfs.server.enable = true;
|
||||
system.nfs.server.exports = cfg.exports;
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
2049
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue