Dev #2
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -61,24 +60,4 @@
|
|||||||
9119
|
9119
|
||||||
8642
|
8642
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd = {
|
|
||||||
timers.hermes-perms-maintenance = {
|
|
||||||
description = "Periodically fix hermes file permissions";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnBootSec = "10s";
|
|
||||||
OnUnitActiveSec = "30s";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hermes-perms-maintenance = {
|
|
||||||
description = "Fix hermes file permissions for gateway access";
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStartPre = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type d -not -perm -2770 -exec ${pkgs.coreutils}/bin/chmod 2770 {} +";
|
|
||||||
ExecStart = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type f -not -perm -0660 -exec ${pkgs.coreutils}/bin/chmod 660 {} +";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user