nixos/nimdow: Make package configurable, ensure nimdow can start a terminal in it's default config

This commit is contained in:
Marcus Ramberg 2024-03-16 19:13:04 +01:00
parent 4b91d6d2e7
commit 20eec34036

View file

@ -8,16 +8,23 @@ in
{
options = {
services.xserver.windowManager.nimdow.enable = mkEnableOption (lib.mdDoc "nimdow");
services.xserver.windowManager.nimdow.package = mkOption {
type = types.package;
default = pkgs.nimdow;
defaultText = "pkgs.nimdow";
description = lib.mdDoc "nimdow package to use";
};
};
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "nimdow";
start = ''
${pkgs.nimdow}/bin/nimdow &
${cfg.package}/bin/nimdow &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.nimdow ];
environment.systemPackages = [ cfg.package pkgs.st ];
};
}