Removed impurities in flake

This commit is contained in:
Julien Malka 2022-08-22 14:21:42 +02:00
parent 3d6f3e3a10
commit 707b19ccb7
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -212,19 +212,13 @@ with lib;
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"f /var/lib/polr/.env 740 polr polr" "f /var/lib/polr/.env 740 polr polr"
]; ];
systemd.services.polr-config = { systemd.services.polr-config = {
wantedBy = [ "phpfpm-polr.service" ];
wants = [ "polr-mysql.service" ]; wants = [ "polr-mysql.service" ];
requiredBy = [ "phpfpm-polr.service" ]; requiredBy = [ "phpfpm-polr.service" ];
before = [ "phpfpm-polr.service" ]; before = [ "phpfpm-polr.service" ];
restartTriggers = [ serviceConfig = {
(builtins.hashFile "sha256" cfg.adminpassFile)
(builtins.hashFile "sha256" cfg.database.dbpassFile)
(builtins.hashFile "sha256" cfg.config.appkeyFile)
];
serviceConfig = {
User = "polr"; User = "polr";
Group = "polr"; Group = "polr";
StateDirectory = "polr"; StateDirectory = "polr";
@ -249,7 +243,6 @@ with lib;
RemoveIPC = true; RemoveIPC = true;
PrivateMounts = true; PrivateMounts = true;
PrivateNetwork = true; PrivateNetwork = true;
# UMask = "0027";
}; };
script = '' script = ''
cp -R ${builtins.toFile "env" createEnvFile} /var/lib/polr/.env cp -R ${builtins.toFile "env" createEnvFile} /var/lib/polr/.env