nixos/gogs: prefer 'umask' over 'chmod'

This commit is contained in:
Felix Buehler 2024-02-04 21:44:11 +01:00 committed by Bjørn Forsman
parent 6fee21cc2c
commit 8dab54e2b3

View File

@ -217,7 +217,6 @@ in
sed -e "s,#secretkey#,$KEY,g" \
-e "s,#dbpass#,$DBPASS,g" \
-i ${runConfig}
chmod 440 ${runConfig} ${secretKey}
''}
mkdir -p ${cfg.repositoryRoot}
@ -239,6 +238,7 @@ in
WorkingDirectory = cfg.stateDir;
ExecStart = "${pkgs.gogs}/bin/gogs web";
Restart = "always";
UMask = "0027";
};
environment = {