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 1/2] 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 ]; + }; +} From 00633a3e1399674083e1cf6d96ed52340dd462d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krzysztof=20Feiler?= Date: Tue, 8 Oct 2019 17:48:09 +0000 Subject: [PATCH 2/2] nixos/window-managers: add cwm to imports as per request from @romildo under #70035 https://github.com/NixOS/nixpkgs/pull/70035#pullrequestreview-298166798 --- nixos/modules/services/x11/window-managers/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/window-managers/default.nix b/nixos/modules/services/x11/window-managers/default.nix index 2a1f22fa9a4c..c17f3830d0e9 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -11,6 +11,7 @@ in ./2bwm.nix ./afterstep.nix ./bspwm.nix + ./cwm.nix ./dwm.nix ./evilwm.nix ./exwm.nix