1
0
Fork 0

nitter: pass config via LoadCredential

This commit is contained in:
Daniel Kempkens 2023-03-20 19:47:31 +01:00
parent 7a19b1f785
commit 70d1f841f5
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,6 @@
nitter-config = { nitter-config = {
file = ./nitter/config.age; file = ./nitter/config.age;
mode = "444";
}; };
nitter-auth = { nitter-auth = {

View file

@ -18,7 +18,8 @@ in
serviceConfig = { serviceConfig = {
DynamicUser = true; DynamicUser = true;
StateDirectory = "nitter"; StateDirectory = "nitter";
Environment = [ "NITTER_CONF_FILE=${config.age.secrets.nitter-config.path}" ]; LoadCredential = [ "config:${config.age.secrets.nitter-config.path}" ];
Environment = [ "NITTER_CONF_FILE=%d/config" ];
# Some parts of Nitter expect `public` folder in working directory, # Some parts of Nitter expect `public` folder in working directory,
# see https://github.com/zedeus/nitter/issues/414 # see https://github.com/zedeus/nitter/issues/414
WorkingDirectory = "${nitter-pkg}/share/nitter"; WorkingDirectory = "${nitter-pkg}/share/nitter";