1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

khd: move package default to config

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

View file

@ -10,26 +10,23 @@ in
{
options = {
services.khd = {
enable = mkOption {
type = types.bool;
default = false;
description = "Whether to enable the khd hototkey daemon.";
};
package = mkOption {
type = types.path;
default = pkgs.khd;
defaultText = "pkgs.khd";
description = "This option specifies the khd package to use.";
};
services.khd.enable = mkOption {
type = types.bool;
default = false;
description = "Whether to enable the khd hototkey daemon.";
};
services.khd.package = mkOption {
type = types.package;
example = literalExample "pkgs.khd";
description = "This option specifies the khd package to use.";
};
};
config = mkIf cfg.enable {
services.khd.package = mkDefault pkgs.khd;
launchd.user.agents.khd = {
path = [ cfg.package pkgs.kwm config.environment.systemPath ];
serviceConfig.Program = "${cfg.package}/bin/khd";