From 3a7008a510f9c1aea6ed127a0c8e7cc050da2bf1 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 26 May 2023 13:18:10 +0800 Subject: [PATCH] users/foodogsquared: create Gonic systemd service unit --- users/foodogsquared/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/users/foodogsquared/default.nix b/users/foodogsquared/default.nix index 4870908..2a07c1d 100644 --- a/users/foodogsquared/default.nix +++ b/users/foodogsquared/default.nix @@ -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"; }