diff --git a/modules/services/kwm.nix b/modules/services/kwm.nix index dc316ea..cdb64b9 100644 --- a/modules/services/kwm.nix +++ b/modules/services/kwm.nix @@ -10,25 +10,23 @@ in { options = { - services.kwm = { - - enable = mkOption { - type = types.bool; - default = false; - description = "Whether to enable the khd window manager."; - }; - - package = mkOption { - type = types.path; - default = pkgs.kwm; - description = "This option specifies the kwm package to use"; - }; + services.kwm.enable = mkOption { + type = types.bool; + default = false; + description = "Whether to enable the khd window manager."; + }; + services.kwm.package = mkOption { + type = types.path; + example = literalExample pkgs.kwm; + description = "This option specifies the kwm package to use"; }; }; config = mkIf cfg.enable { + services.kwm.package = mkDefault pkgs.kwm; + launchd.user.agents.kwm = { serviceConfig.Program = "${cfg.package}/kwm"; serviceConfig.KeepAlive = true;