From 72ceb05070fb2a4aecefbecc6f582b41b9e71b1c Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Sun, 24 May 2020 20:52:44 +0100 Subject: add my dwm setup --- modules/programs/dwm.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/programs/dwm.nix (limited to 'modules/programs') 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=$! + ''; + }; + }; +} -- cgit v1.2.3