1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.services.xserver.windowManager.oroborus;
7in
8{
9 ###### interface
10 options = {
11 services.xserver.windowManager.oroborus.enable = mkEnableOption "oroborus";
12 };
13
14 ###### implementation
15 config = mkIf cfg.enable {
16 services.xserver.windowManager.session = singleton {
17 name = "oroborus";
18 start = ''
19 ${pkgs.oroborus}/bin/oroborus &
20 waitPID=$!
21 '';
22 };
23 environment.systemPackages = [ pkgs.oroborus ];
24 };
25}