mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-04 03:01:05 +02:00
Removed impurities in flake
This commit is contained in:
parent
3d6f3e3a10
commit
707b19ccb7
1 changed files with 3 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue