about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/services/x11/window-managers/notion.nix
blob: 0015e90a41c5e5d170eb5ee49879079495e26c25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.xserver.windowManager.notion;
in

{
  options = {
    services.xserver.windowManager.notion.enable = mkEnableOption (lib.mdDoc "notion");
  };

  config = mkIf cfg.enable {
    services.xserver.windowManager = {
      session = [{
        name = "notion";
        start = ''
          ${pkgs.notion}/bin/notion &
          waitPID=$!
        '';
      }];
    };
    environment.systemPackages = [ pkgs.notion ];
  };
}