From f9546ed62aaf62b0508cd2ac700a75c9a966e9f0 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 11 Mar 2022 10:02:22 +0000 Subject: [PATCH] ts3spotifybot: remove for now --- ops/nixos/clouvider-fra01/default.nix | 1 - ops/nixos/lib/ts3spotifybot.nix | 35 --------------------------- 2 files changed, 36 deletions(-) delete mode 100644 ops/nixos/lib/ts3spotifybot.nix diff --git a/ops/nixos/clouvider-fra01/default.nix b/ops/nixos/clouvider-fra01/default.nix index bdce9fc77e..c4f56513c8 100644 --- a/ops/nixos/clouvider-fra01/default.nix +++ b/ops/nixos/clouvider-fra01/default.nix @@ -49,7 +49,6 @@ in { imports = [ ../lib/zfs.nix ../lib/bgp.nix - ../lib/ts3spotifybot.nix ../lib/coredns/default.nix ../lib/deluge.nix ../lib/plex.nix diff --git a/ops/nixos/lib/ts3spotifybot.nix b/ops/nixos/lib/ts3spotifybot.nix deleted file mode 100644 index 9412bbc526..0000000000 --- a/ops/nixos/lib/ts3spotifybot.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ depot, pkgs, ... }: -let - service = { - wantedBy = [ "ts3musicbot.target" ]; - partOf = [ "ts3musicbot.target" ]; - }; - audioService = service // { - after = [ "ts3musicbot-pulseaudio.service" ]; - bindsTo = [ "ts3musicbot-pulseaudio.service" ]; - }; -in -{ - users.users.ts3musicbot = { - isNormalUser = true; - group = "nogroup"; - createHome = true; - home = "/var/lib/ts3musicbot"; - }; - - systemd.targets.ts3musicbot = { - wantedBy = [ "multi-user.target" ]; - }; - systemd.services.ts3musicbot-pulseaudio = service // { - serviceConfig.ExecStart = "${pkgs.pulseaudio}/bin/pulseaudio --start --daemonize=false --load=\"module-null-sink sink_name=Loop\" --load=\"module-null-sink sink_name=The Void\" --load=\"module-native-protocol-unix\""; - serviceConfig.User = "ts3musicbot"; - }; - systemd.services.ts3musicbot-spotifyd = audioService // { - serviceConfig.ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${depot.ops.secrets.spotifyd}"; - serviceConfig.User = "ts3musicbot"; - }; - systemd.services.ts3musicbot-teamspeak = audioService // { - serviceConfig.ExecStart = "${pkgs.xvfb_run}/bin/xvfb-run -d -s \"-screen 0 1280x1024x24\" ${pkgs.teamspeak_client}/bin/ts3client"; - serviceConfig.User = "ts3musicbot"; - }; -}