From d9a7c5101646a5e33c92173adc6b1d4b76b5ded4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krzysztof=20Feiler?= Date: Sun, 29 Sep 2019 23:26:08 +0200 Subject: [PATCH] nixos/cwm: init Added windowManager cwm, basing on the module for dwm. --- .../services/x11/window-managers/cwm.nix | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nixos/modules/services/x11/window-managers/cwm.nix diff --git a/nixos/modules/services/x11/window-managers/cwm.nix b/nixos/modules/services/x11/window-managers/cwm.nix new file mode 100644 index 000000000000..03375a226bb6 --- /dev/null +++ b/nixos/modules/services/x11/window-managers/cwm.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.xserver.windowManager.cwm; +in +{ + options = { + services.xserver.windowManager.cwm.enable = mkEnableOption "cwm"; + }; + config = mkIf cfg.enable { + services.xserver.windowManager.session = singleton + { name = "cwm"; + start = + '' + cwm & + waitPID=$! + ''; + }; + environment.systemPackages = [ pkgs.cwm ]; + }; +}