users/foodogsquared: create Gonic systemd service unit

This commit is contained in:
Gabriel Arazas 2023-05-26 13:18:10 +08:00
parent 55563fb146
commit 3a7008a510
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -107,5 +107,16 @@ in
};
};
systemd.user.services.gonic = {
Unit = {
After = [ "network.target" "sound.target" ];
Description = "Gonic server";
Documentation = [ "https://github.com/sentriz/gonic" ];
};
Service.ExecStart = "${lib.getBin pkgs.gonic}/bin/gonic -config-path %E/gonic/gonic.conf -music-path %h/Music -cache-path %C/gonic -podcast-path %C/gonic/podcasts";
Install.WantedBy = "default.target";
};
home.stateVersion = "23.05";
}