diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2020-05-11 23:53:02 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2020-05-13 21:32:54 -0300 |
commit | 58a93ee62d9cd318934993e7d88660ef1ad61490 (patch) | |
tree | 20bcaf9e5e54d33336e526e707b3ce9a503d779d /nixos/modules/services/x11/window-managers/smallwm.nix | |
parent | 35c089a6e209b0f96e3d56fdc1cfa10386d6ce10 (diff) |
smallwm: init at 2020-02-28
Diffstat (limited to 'nixos/modules/services/x11/window-managers/smallwm.nix')
-rw-r--r-- | nixos/modules/services/x11/window-managers/smallwm.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/smallwm.nix b/nixos/modules/services/x11/window-managers/smallwm.nix new file mode 100644 index 0000000000000..091ba4f92b94d --- /dev/null +++ b/nixos/modules/services/x11/window-managers/smallwm.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.xserver.windowManager.smallwm; +in +{ + ###### interface + options = { + services.xserver.windowManager.smallwm.enable = mkEnableOption "smallwm"; + }; + + ###### implementation + config = mkIf cfg.enable { + services.xserver.windowManager.session = singleton { + name = "smallwm"; + start = '' + ${pkgs.smallwm}/bin/smallwm & + waitPID=$! + ''; + }; + environment.systemPackages = [ pkgs.smallwm ]; + }; +} |