mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nixos/evilwm: allow enabling evilwm through services.xserver.windowManager.evilwm.*
This commit is contained in:
parent
905b7a6e73
commit
f5f601a7f2
25
nixos/modules/services/x11/window-managers/evilwm.nix
Normal file
25
nixos/modules/services/x11/window-managers/evilwm.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user