{ boot.loader.grub.device = "nodev"; fileSystems."/".device = "x"; services.znc = { enable = true; mutable = false; config.LoadModule = [ "foo" "bar" ]; useLegacyConfig = false; }; }