From fa03cd4939abb5cc150bd3205db268b3723be680 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 14 May 2017 14:31:48 +0200 Subject: [PATCH] kwm: move package default to config --- modules/services/kwm.nix | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) 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;