1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

kwm: move package default to config

This commit is contained in:
Daiderd Jordan 2017-05-14 14:31:48 +02:00
parent 6430ca5e86
commit fa03cd4939
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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;