From 11ab99645153f654626d03f3e975853b32660c29 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sat, 7 Sep 2024 12:50:37 -0400 Subject: [PATCH] Prepare for Liquidsoap 'API'-like integration for webpages --- nixos/hardware/machines/server.nix | 5 ----- nixos/server.nix | 1 + nixos/users/jimbo.nix | 1 - nixos/users/liquidsoap.nix | 9 +++++++++ 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 nixos/users/liquidsoap.nix diff --git a/nixos/hardware/machines/server.nix b/nixos/hardware/machines/server.nix index d806e35..cf0c234 100644 --- a/nixos/hardware/machines/server.nix +++ b/nixos/hardware/machines/server.nix @@ -76,11 +76,6 @@ fsType = "none"; options = [ "bind" ]; }; - "/var/lib/docker/volumes/azuracast_station_data/_data/jimbops/media/Music" = { - device = "/export/JimboNFS/Music"; - fsType = "none"; - options = [ "bind" ]; - }; "/var/lib/mastodon" = { device = "/export/JimboNFS/System/var/lib/mastodon"; fsType = "none"; diff --git a/nixos/server.nix b/nixos/server.nix index 55161f4..6d64bfb 100644 --- a/nixos/server.nix +++ b/nixos/server.nix @@ -7,6 +7,7 @@ ./users/jimbo.nix ./users/nextcloud.nix ./users/nginx.nix + ./users/liquidsoap.nix ./users/groups.nix # Modules diff --git a/nixos/users/jimbo.nix b/nixos/users/jimbo.nix index 4a6be18..21dce74 100644 --- a/nixos/users/jimbo.nix +++ b/nixos/users/jimbo.nix @@ -17,7 +17,6 @@ "kvm" "libvirtd" "qemu-libvirtd" - "docker" "nginx" "minecraft" "nfsShare" diff --git a/nixos/users/liquidsoap.nix b/nixos/users/liquidsoap.nix new file mode 100644 index 0000000..c1a2abd --- /dev/null +++ b/nixos/users/liquidsoap.nix @@ -0,0 +1,9 @@ +{ + # Add service users to extra groups + users.users = { + nextcloud = { + extraGroups = [ "nginx" ]; + isSystemUser = true; + }; + }; +}