git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8815 from jfb/add-nixos-to-window-managers

window-manager service: add notion

commitbf596463fda818ac31342aaee28a641d1fba9ef9 authorlethalman <lucabru@src.gnome.org> dateTue 14 Jul 2015, 19:52 (11 years ago) parent37dad0ebe5ad1d
2 files changed+33
nixos/modules/services/x11/window-managers/default.nix+1 nixos/modules/services/x11/window-managers/notion.nix+32
nixos/modules/services/x11/window-managers/default.nix+1
@@ -16,6 +16,7 @@ in
1616 ./i3.nix
1717 ./metacity.nix
1818 ./openbox.nix
19+ ./notion.nix
1920 ./ratpoison.nix
2021 ./sawfish.nix
2122 ./stumpwm.nix
nixos/modules/services/x11/window-managers/notion.nixnew file+32
@@ -0,0 +1,32 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.xserver.windowManager.notion;
7+in
8+
9+{
10+ options = {
11+ services.xserver.windowManager.notion = {
12+ enable = mkOption {
13+ default = false;
14+ example = true;
15+ description = "Enable the notion tiling window manager.";
16+ };
17+ };
18+ };
19+
20+ config = mkIf cfg.enable {
21+ services.xserver.windowManager = {
22+ session = [{
23+ name = "notion";
24+ start = ''
25+ ${pkgs.notion}/bin/notion &
26+ waitPID=$!
27+ '';
28+ }];
29+ };
30+ environment.systemPackages = [ pkgs.notion ];
31+ };
32+}