nixos/orca: Fix systemd unit

The new systemd unit has `WantedBy=graphical-session.target`, and
`ExecStart=orca` needs to be patched to the absolute path.
This commit is contained in:
Will Fancher
2025-11-15 10:16:06 -05:00
parent c5ae371f1a
commit 4abaad7d57
2 changed files with 2 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ]; environment.systemPackages = [ cfg.package ];
systemd.packages = [ cfg.package ]; systemd.packages = [ cfg.package ];
systemd.user.services.orca.wantedBy = [ "graphical-session.target" ];
services.speechd.enable = true; services.speechd.enable = true;
}; };
} }

View File

@@ -104,6 +104,7 @@ python3.pkgs.buildPythonApplication rec {
preFixup = '' preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}") makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
substituteInPlace $out/lib/systemd/user/orca.service --replace-fail ExecStart=orca ExecStart=$out/bin/orca
''; '';
passthru = { passthru = {