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 | |
parent | 35c089a6e209b0f96e3d56fdc1cfa10386d6ce10 (diff) | |
download | nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.tar nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.tar.gz nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.tar.bz2 nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.tar.lz nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.tar.xz nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.tar.zst nixpkgs-58a93ee62d9cd318934993e7d88660ef1ad61490.zip |
smallwm: init at 2020-02-28
Diffstat (limited to 'nixos/modules/services/x11/window-managers')
-rw-r--r-- | nixos/modules/services/x11/window-managers/default.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/x11/window-managers/smallwm.nix | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/default.nix b/nixos/modules/services/x11/window-managers/default.nix index b815c5f16a1..51096d80498 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -28,6 +28,7 @@ in ./notion.nix ./ratpoison.nix ./sawfish.nix + ./smallwm.nix ./stumpwm.nix ./spectrwm.nix ./tinywm.nix 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 00000000000..091ba4f92b9 --- /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 ]; + }; +} |