2023-03-15 16:39:30 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.nimdow;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2024-04-21 15:54:59 +00:00
|
|
|
services.xserver.windowManager.nimdow.enable = mkEnableOption "nimdow";
|
|
|
|
services.xserver.windowManager.nimdow.package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.nimdow;
|
|
|
|
defaultText = "pkgs.nimdow";
|
|
|
|
description = "nimdow package to use";
|
|
|
|
};
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "nimdow";
|
|
|
|
start = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
${cfg.package}/bin/nimdow &
|
2023-03-15 16:39:30 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
environment.systemPackages = [ cfg.package pkgs.st ];
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|