diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-05-14 14:31:48 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-05-14 14:31:48 +0200 |
| commit | fa03cd4939abb5cc150bd3205db268b3723be680 (patch) | |
| tree | 154e40f881810305e5561741ed6e8df9a803ba59 /modules | |
| parent | 6430ca5e8655863b20368ae6fcc4765b8c53f3c4 (diff) | |
kwm: move package default to config
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/services/kwm.nix | 24 |
1 files 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; |
