diff --git a/hosts/koi/configuration.nix b/hosts/koi/configuration.nix index 816961a..4cfa4eb 100755 --- a/hosts/koi/configuration.nix +++ b/hosts/koi/configuration.nix @@ -12,14 +12,12 @@ ./partials/fde.nix - ./services/cage.nix ./services/coredns.nix ./services/sing-box.nix ./services/nginx.nix ./services/phpfront.nix ./services/landing - ./containers/uxplay.nix ./containers/torrent.nix ./containers/puffer.nix ./containers/vaultwarden.nix diff --git a/hosts/koi/containers/uxplay.nix b/hosts/koi/containers/uxplay.nix deleted file mode 100644 index 097d2ff..0000000 --- a/hosts/koi/containers/uxplay.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ abs, lib, pkgs, config, ... }@inputs: -let - containers = import (abs "lib/containers.nix") inputs; - uxplay = import (abs "services/uxplay.nix") inputs; -in -{ - imports = [ - (containers.mkNixosContainer { - name = "uxplay"; - ip = "10.42.0.6"; - private = false; - - config = { ... }: { - imports = [ - (uxplay { - params = [ - "-p 7000" - "-vs 0" - "-async" - "-n koi -nh" - ]; - withAvahi = true; - }) - ]; - - networking.firewall.allowedTCPPorts = [ 7000 7001 7002 ]; - networking.firewall.allowedUDPPorts = [ 7000 7001 7002 ]; - services.avahi.openFirewall = true; - }; - - containerConfig.extraFlags = [ - "--bind=/run/pipewire" - "--bind=/dev/snd" - "--bind=/dev/shm" - ]; - }) - ]; - - security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - systemWide = true; - }; -} diff --git a/hosts/koi/services/cage.nix b/hosts/koi/services/cage.nix deleted file mode 100644 index a184245..0000000 --- a/hosts/koi/services/cage.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ pkgs, abs, config, ... }@inputs: - -{ - services.cage = { - enable = true; - user = "cage"; - program = "${pkgs.mpv}/bin/mpv /mnt/puffer/Downloads/anime --shuffle --loop-playlist --directory-mode=recursive"; - environment = { - WLR_LIBINPUT_NO_DEVICES = "1"; - }; - }; - - users.users.cage = { - isNormalUser = true; - description = "Guest account for Cage"; - createHome = false; - shell = pkgs.shadow; - }; -}