mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
26 lines
483 B
Nix
26 lines
483 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.xserver.windowManager.evilwm;
|
|
in
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.xserver.windowManager.evilwm.enable = mkEnableOption "evilwm";
|
|
};
|
|
|
|
###### implementation
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton {
|
|
name = "evilwm";
|
|
start = ''
|
|
${pkgs.evilwm}/bin/evilwm &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
environment.systemPackages = [ pkgs.evilwm ];
|
|
};
|
|
}
|