1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00
nix-darwin/modules/services/kwm.nix
2017-05-14 14:31:48 +02:00

42 lines
850 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.kwm;
in
{
options = {
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;
serviceConfig.ProcessType = "Interactive";
serviceConfig.Sockets.Listeners =
{ SockServiceName = "3020";
SockType = "dgram";
SockFamily = "IPv4";
};
};
};
}