diff --git a/nixos/modules/nixos/system/nfs/default.nix b/nixos/modules/nixos/system/nfs/default.nix index bf80805..b5453b6 100644 --- a/nixos/modules/nixos/system/nfs/default.nix +++ b/nixos/modules/nixos/system/nfs/default.nix @@ -1,7 +1,4 @@ -{ lib -, config -, ... -}: +{ lib, config, ... }: let cfg = config.mySystem.system.nfs; in @@ -15,8 +12,8 @@ in }; config = lib.mkIf cfg.enable { - system.nfs.server.enable = true; - system.nfs.server.exports = cfg.exports; + services.nfs.server.enable = true; + services.nfs.server.exports = cfg.exports; networking.firewall.allowedTCPPorts = [ 2049 ];