diff --git a/modules/hermes/hermes.nix b/modules/hermes/hermes.nix index 185cb47..acdb3dc 100644 --- a/modules/hermes/hermes.nix +++ b/modules/hermes/hermes.nix @@ -1,7 +1,6 @@ { inputs, config, - pkgs, ... }: @@ -61,24 +60,4 @@ 9119 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 {} +"; - }; - }; - }; }