summaryrefslogtreecommitdiff
path: root/modules/programs/dwm.nix
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-05-24 20:52:44 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-05-24 20:52:44 +0100
commit72ceb05070fb2a4aecefbecc6f582b41b9e71b1c (patch)
treeba89218cef392b088528f2375635681ebaeef429 /modules/programs/dwm.nix
parent8096ed8c66f08afa02714f3660f8539d48f08da8 (diff)
add my dwm setup
Diffstat (limited to 'modules/programs/dwm.nix')
-rw-r--r--modules/programs/dwm.nix22
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=$!
+ '';
+ };
+ };
+}