1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.services.xserver.windowManager.notion;
7in
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}