This commit is contained in:
Kat Inskip 2025-07-26 13:48:37 -07:00
parent 2dce5c567d
commit 2b1fd9b99e
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
12 changed files with 54 additions and 23 deletions

View file

@ -2,6 +2,7 @@
inherit (lib.options) mkOption mkEnableOption mkPackageOption;
inherit (lib.types) submodule path nullOr;
inherit (lib.modules) mkIf;
inherit (lib.meta) getExe';
cfg = config.programs.konawall-py;
in {
options.programs.konawall-py = {
@ -31,7 +32,7 @@ in {
After = ["graphical-session.target" "network-online.target"];
};
Service = {
ExecStart = "${cfg.package}/bin/konawall";
ExecStart = "${getExe' cfg.package "gui"}";
Restart = "on-failure";
RestartSec = "1s";
EnvironmentFile = cfg.environmentFile;