diff options
author | James Felix Black <james_black@apple.com> | 2015-07-14 12:35:35 -0400 |
---|---|---|
committer | James Felix Black <james_black@apple.com> | 2015-07-14 12:36:59 -0400 |
commit | be5ad1d07c21e9e2bab697098a35859a51f20650 (patch) | |
tree | ad5b86b149678b42a965bc378dd6115d99954d9d /nixos/modules/services | |
parent | 37dad0ee0b36dc6964ac87667f2c7c3723b22dd1 (diff) |
window-manager service: add notion
Add the notion window manager to the windowManager service definition.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/x11/window-managers/default.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/x11/window-managers/notion.nix | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/window-managers/default.nix b/nixos/modules/services/x11/window-managers/default.nix index 097e4fe70d584..a8b1044ad365d 100644 --- a/nixos/modules/services/x11/window-managers/default.nix +++ b/nixos/modules/services/x11/window-managers/default.nix @@ -16,6 +16,7 @@ in ./i3.nix ./metacity.nix ./openbox.nix + ./notion.nix ./ratpoison.nix ./sawfish.nix ./stumpwm.nix diff --git a/nixos/modules/services/x11/window-managers/notion.nix b/nixos/modules/services/x11/window-managers/notion.nix new file mode 100644 index 0000000000000..1bfc2a86e9650 --- /dev/null +++ b/nixos/modules/services/x11/window-managers/notion.nix @@ -0,0 +1,32 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.xserver.windowManager.notion; +in + +{ + options = { + services.xserver.windowManager.notion = { + enable = mkOption { + default = false; + example = true; + description = "Enable the notion tiling window manager."; + }; + }; + }; + + config = mkIf cfg.enable { + services.xserver.windowManager = { + session = [{ + name = "notion"; + start = '' + ${pkgs.notion}/bin/notion & + waitPID=$! + ''; + }]; + }; + environment.systemPackages = [ pkgs.notion ]; + }; +} |