From a37a72e81f99d5819af55310795504843be80872 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 16 Mar 2024 00:56:57 -0700 Subject: [PATCH] box: get gonic working again (needed headphones user) --- hosts/box/default.nix | 4 ++-- hosts/profiles/gonic/default.nix | 8 ++++++++ hosts/profiles/headphones/default.nix | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hosts/box/default.nix b/hosts/box/default.nix index dff159c4..c6776173 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -10,9 +10,9 @@ # ../profiles/monitoring ../profiles/nfs ../profiles/gonic - ../profiles/headphones + # ../profiles/headphones # TODO broken on 23.11, see: https://github.com/rembo10/headphones/issues/3320 ../profiles/radicale - ../profiles/seafile + # ../profiles/seafile # waiting for https://github.com/NixOS/nixpkgs/pull/249523 to be merged ../profiles/syncthing ../profiles/dhyan ../profiles/calibre diff --git a/hosts/profiles/gonic/default.nix b/hosts/profiles/gonic/default.nix index 06dec607..df8cabb4 100644 --- a/hosts/profiles/gonic/default.nix +++ b/hosts/profiles/gonic/default.nix @@ -9,4 +9,12 @@ mossnet.gonic.user = "headphones"; mossnet.gonic.group = "audio"; networking.firewall.allowedTCPPorts = [ 4747 ]; + + users.users.gonic = { + uid = config.ids.uids.headphones; + # isSystemUser = true; + group = "audio"; + home = "/var/lib/headphones"; + createHome = true; + }; } diff --git a/hosts/profiles/headphones/default.nix b/hosts/profiles/headphones/default.nix index 7af396d0..8f23bf3e 100644 --- a/hosts/profiles/headphones/default.nix +++ b/hosts/profiles/headphones/default.nix @@ -4,6 +4,7 @@ enable = true; host = "0.0.0.0"; port = 8181; + package = "${pkgs.unstable.headphones}"; user = "headphones"; group = "audio"; dataDir = "/data/music";