Skip to content

Commit

Permalink
nixos: Use lib.getExe
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Stephens <adam@valkor.net>
  • Loading branch information
zhaofengli and adamcstephens committed Oct 14, 2024
1 parent ecb1757 commit e843ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/atticd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let
export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64="dGVzdCBzZWNyZXQ="
export ATTIC_SERVER_DATABASE_URL="sqlite://:memory:"
${cfg.package}/bin/atticd --mode check-config -f $configFile
${lib.getExe cfg.package} --mode check-config -f $configFile
cat <$configFile >$out
'';

Expand Down Expand Up @@ -204,7 +204,7 @@ in
requires = lib.optionals hasLocalPostgresDB [ "postgresql.service" ];

serviceConfig = {
ExecStart = "${cfg.package}/bin/atticd -f ${checkedConfigFile} --mode ${cfg.mode}";
ExecStart = "${lib.getExe cfg.package} -f ${checkedConfigFile} --mode ${cfg.mode}";
EnvironmentFile = cfg.environmentFile;
StateDirectory = "atticd"; # for usage with local storage and sqlite
DynamicUser = true;
Expand Down

0 comments on commit e843ed7

Please sign in to comment.