more music stuff

Changed files
+5 -1
hosts
profiles
+3 -1
hosts/profiles/sync/music/default.nix
··· 5 5 serviceConfig.Type = "oneshot"; 6 6 path = [ 7 7 pkgs.coreutils 8 + pkgs.openssh 9 + pkgs.gawk 8 10 pkgs.rsync 9 11 pkgs.beets 10 12 ]; ··· 13 15 User = "anish"; 14 16 }; 15 17 }; 16 - systemd.timers.get-music-timer = { 18 + systemd.timers.get-music-sync = { 17 19 wantedBy = [ "timers.target" ]; 18 20 partOf = [ "get-music-sync.service" ]; 19 21 timerConfig.OnCalendar = [ "hourly" ];
+2
hosts/profiles/sync/music/get-music.sh
··· 45 45 46 46 # Import to beets 47 47 echo "$(date): Importing $album to beets..." >>"$LOG_FILE" 48 + # Set umask to allow group read/write access 49 + umask 002 48 50 if beet -p fetchart import -m -l /home/anish/music.log -q -g "$LOCAL_PATH/$album"; then 49 51 echo "$(date): Successfully imported $album to beets" >>"$LOG_FILE" 50 52 else