home/natto: add mpdas
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -41,6 +41,9 @@ in
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					  services = {
 | 
				
			||||||
 | 
					    imapnotify.enable = true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
    mbsync.enable = true;
 | 
					    mbsync.enable = true;
 | 
				
			||||||
    neomutt = rec {
 | 
					    neomutt = rec {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,4 +50,20 @@ in
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  systemd.user.services.mpdas = {
 | 
				
			||||||
 | 
					    Unit = {
 | 
				
			||||||
 | 
					      After = [ "mpd.service" ];
 | 
				
			||||||
 | 
					      Description = "Music Player Daemon AutoScrobbler";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Install.WantedBy = [ "default.target" ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Service = {
 | 
				
			||||||
 | 
					      Type = "simple";
 | 
				
			||||||
 | 
					      Restart = "on-failure";
 | 
				
			||||||
 | 
					      RestartSec = "15s";
 | 
				
			||||||
 | 
					      ExecStart = "${pkgs.mpdas}/bin/mpdas -c ${config.age.secrets.mpdasrc.path}";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user