diff --git a/modules/services/network-filesystems/nfs-kernel.nix b/modules/services/network-filesystems/nfs-kernel.nix index 7987ae3ef657..c0cccac53439 100644 --- a/modules/services/network-filesystems/nfs-kernel.nix +++ b/modules/services/network-filesystems/nfs-kernel.nix @@ -151,7 +151,7 @@ in description = "Kernel NFS server - Network Status Monitor"; - startOn = "started ${if cfg.server.enable then "nfs-kernel-nfsd and " else ""} started portmap"; + startOn = "${if cfg.server.enable then "started nfs-kernel-nfsd and " else ""} started portmap"; stopOn = "stopping nfs-kernel-exports"; preStart =