From 514f2c8d07807ed46c31016cf2f253d95051eae3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 29 Mar 2022 13:18:47 +0200 Subject: [PATCH] HACK: Change home partition permissions for Mopidy --- modules/periodic.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" ]; + }; }