Skip to content

Commit 2cc1a22

Browse files
committed
feat: gonic
1 parent 10cf5b5 commit 2cc1a22

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

custom_modules/comfyui.nix

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,39 @@ in
2828
# extraArgs = [ "--lowvram" ];
2929
# environment = { };
3030
};
31+
services.gonic = {
32+
enable = true;
33+
settings = {
34+
music-path = [ "/var/lib/gonic/example_music" ];
35+
listen-addr = "0.0.0.0:4747";
36+
cache-path = "/var/cache/gonic";
37+
podcast-path = "/var/lib/gonic/podcasts";
38+
playlists-path = "/var/lib/gonic/playlists";
39+
proxy-prefix = "/gonic";
40+
};
41+
};
42+
systemd.services.gonic.serviceConfig = {
43+
SupplementaryGroups = [ "users" ];
44+
ProtectHome = lib.mkForce "read-only";
45+
ReadWritePaths = [
46+
"/var/cache/gonic"
47+
"/var/lib/gonic"
48+
];
49+
ProtectSystem = "full";
50+
NoNewPrivileges = true;
51+
};
52+
# THIS DIDNT WORK AT ALL AND LOCKED ME TF OUT
53+
# systemd.services.tailscaled-sidecar = {
54+
# description = "Temporary Tailscale sidecar for Apple Review";
55+
# after = [ "network.target" ];
56+
# wantedBy = [ "multi-user.target" ];
57+
# serviceConfig = {
58+
# # --tun=user runs in userspace (no conflict with your main tailscale0 interface)
59+
# # --socket and --statedir keep it isolated from your main config
60+
# ExecStart = "${pkgs.tailscale}/bin/tailscaled --statedir=/var/lib/tailscale/sidecar --socket=/run/tailscale/sidecar.socket --port=0 --tun=user";
61+
# Restart = "on-failure";
62+
# };
63+
# };
3164

3265
};
3366

custom_modules/core_services.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ in
124124
reverse_proxy 127.0.0.1:3000
125125
}
126126
127+
handle_path /gonic* {
128+
reverse_proxy 127.0.0.1:4747
129+
}
130+
127131
handle_path /sunshine* {
128132
reverse_proxy https://127.0.0.1:48012 {
129133
transport http {
@@ -187,6 +191,13 @@ in
187191
description = "Music Streamer";
188192
};
189193
}
194+
{
195+
"Gonic" = {
196+
icon = "gonic";
197+
href = "/gonic/";
198+
description = "Subsonic Music Server";
199+
};
200+
}
190201
{
191202
"SearX" = {
192203
icon = "searxng"; # or "searx"

custom_modules/workstation_services.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ let
4040
gemini-cli
4141
crush
4242
pam-insults
43+
nix-eval-jobs
44+
nix-diff
4345
scrutiny
4446
scrutiny-collector
4547
ethtool

0 commit comments

Comments
 (0)