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:
parent
6430ca5e86
commit
fa03cd4939
1 changed files with 11 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue