box: get gonic working again (needed headphones user)

This commit is contained in:
Anish Lakhwara 2024-03-16 00:56:57 -07:00
parent c0ff69d9f8
commit a37a72e81f
3 changed files with 11 additions and 2 deletions

View file

@ -10,9 +10,9 @@
# ../profiles/monitoring # ../profiles/monitoring
../profiles/nfs ../profiles/nfs
../profiles/gonic ../profiles/gonic
../profiles/headphones # ../profiles/headphones # TODO broken on 23.11, see: https://github.com/rembo10/headphones/issues/3320
../profiles/radicale ../profiles/radicale
../profiles/seafile # ../profiles/seafile # waiting for https://github.com/NixOS/nixpkgs/pull/249523 to be merged
../profiles/syncthing ../profiles/syncthing
../profiles/dhyan ../profiles/dhyan
../profiles/calibre ../profiles/calibre

View file

@ -9,4 +9,12 @@
mossnet.gonic.user = "headphones"; mossnet.gonic.user = "headphones";
mossnet.gonic.group = "audio"; mossnet.gonic.group = "audio";
networking.firewall.allowedTCPPorts = [ 4747 ]; networking.firewall.allowedTCPPorts = [ 4747 ];
users.users.gonic = {
uid = config.ids.uids.headphones;
# isSystemUser = true;
group = "audio";
home = "/var/lib/headphones";
createHome = true;
};
} }

View file

@ -4,6 +4,7 @@
enable = true; enable = true;
host = "0.0.0.0"; host = "0.0.0.0";
port = 8181; port = 8181;
package = "${pkgs.unstable.headphones}";
user = "headphones"; user = "headphones";
group = "audio"; group = "audio";
dataDir = "/data/music"; dataDir = "/data/music";