diff options
Diffstat (limited to 'modules/programs')
-rw-r--r-- | modules/programs/dwm.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/programs/dwm.nix b/modules/programs/dwm.nix new file mode 100644 index 0000000..c158a5e --- /dev/null +++ b/modules/programs/dwm.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: +with lib; + +let + cfg = config.eth.programs.dwm; + +in { + options.eth.programs.dwm = { + enable = mkEnableOption "Whether to enable dwm"; + }; + + config = mkIf cfg.enable { + environment.systemPackages = [ pkgs.eth.dwm ]; + services.xserver.windowManager.session = singleton { + name = "dwm"; + start = '' + ${pkgs.eth.dwm}/bin/dwm & + waitPID=$! + ''; + }; + }; +} |