mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-15 13:07:49 +00:00
nixos: Use lib.getExe
Co-authored-by: Adam Stephens <adam@valkor.net>
This commit is contained in:
parent
78a3119c6d
commit
94fa54632d
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ let
|
||||||
|
|
||||||
export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64="dGVzdCBzZWNyZXQ="
|
export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64="dGVzdCBzZWNyZXQ="
|
||||||
export ATTIC_SERVER_DATABASE_URL="sqlite://:memory:"
|
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
|
cat <$configFile >$out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ in
|
||||||
requires = lib.optionals hasLocalPostgresDB [ "postgresql.service" ];
|
requires = lib.optionals hasLocalPostgresDB [ "postgresql.service" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${cfg.package}/bin/atticd -f ${checkedConfigFile} --mode ${cfg.mode}";
|
ExecStart = "${lib.getExe cfg.package} -f ${checkedConfigFile} --mode ${cfg.mode}";
|
||||||
EnvironmentFile = cfg.environmentFile;
|
EnvironmentFile = cfg.environmentFile;
|
||||||
StateDirectory = "atticd"; # for usage with local storage and sqlite
|
StateDirectory = "atticd"; # for usage with local storage and sqlite
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue