6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
27 lines
646 B
Nix
27 lines
646 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mdDoc mkEnableOption mkIf mkPackageOptionMD singleton;
|
|
cfg = config.services.xserver.windowManager.katriawm;
|
|
in
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.xserver.windowManager.katriawm = {
|
|
enable = mkEnableOption (mdDoc "katriawm");
|
|
package = mkPackageOptionMD pkgs "katriawm" {};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton {
|
|
name = "katriawm";
|
|
start = ''
|
|
${cfg.package}/bin/katriawm &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
environment.systemPackages = [ cfg.package ];
|
|
};
|
|
}
|