summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers/e16.nix
blob: 3e1a22c4dabd89c1e91ab24f18b44bea98b442e9 (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.e16;
in
{
  ###### interface
  options = {
    services.xserver.windowManager.e16.enable = mkEnableOption "e16";
  };

  ###### implementation
  config = mkIf cfg.enable {
    services.xserver.windowManager.session = singleton {
      name = "E16";
      start = ''
        ${pkgs.e16}/bin/e16 &
        waitPID=$!
      '';
    };

    environment.systemPackages = [ pkgs.e16 ];
  };
}