diff --git a/modules/periodic.nix b/modules/periodic.nix index 1fc5f2a..a638239 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -94,4 +94,14 @@ in { serviceConfig.Type = "oneshot"; startAt = "*-*-13 17:00:00"; }; + + # HACK Change home partition permissions for mopidy + systemd.services.chmod-home = { + description = "Change home partition permissions for Mopidy"; + wantedBy = [ "default.target" ]; + script = "chmod 751 /home/coolneng"; + serviceConfig.Type = "oneshot"; + after = [ "home-coolneng.mount" ]; + before = [ "mopidy.service" "mopidy-scan.service" ]; + }; }