From 059319cb1becd15d6897e445894a512b95efd698 Mon Sep 17 00:00:00 2001 From: Erik Simon Date: Fri, 9 Oct 2026 19:54:53 +0200 Subject: [PATCH] feat(terra): release KB7/KP7 from host control on boot/replug Adds turtle-beach-swarm-re as a flake input and enables its release module, so a warm reboot from Windows no longer leaves the KB7 showing Swarm's last streamed frame. Co-Authored-By: Claude Opus 5.5 --- flake.lock | 23 ++++++++++++++++++++++- flake.nix | 6 ++++++ hosts/terra/configuration.nix | 4 ++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 7fc1719..216097c 100644 --- a/flake.lock +++ b/flake.lock @@ -535,7 +535,8 @@ "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", "sops-nix": "sops-nix", - "tome": "tome" + "tome": "tome", + "turtle-beach-swarm-re": "turtle-beach-swarm-re" } }, "sops-nix": { @@ -610,6 +611,26 @@ "type": "github" } }, + "turtle-beach-swarm-re": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1791568018, + "narHash": "sha256-tsMLMrkJWpUPqd8iVO458N4AYzEwrOQZD5TF+qtBpOE=", + "ref": "refs/heads/main", + "rev": "fede79ab2f0b083d502f646a844ed419c08e956d", + "revCount": 17, + "type": "git", + "url": "ssh://gitea@git.mgaction.town:2222/darman/turtle-beach-swarm-re.git" + }, + "original": { + "type": "git", + "url": "ssh://gitea@git.mgaction.town:2222/darman/turtle-beach-swarm-re.git" + } + }, "uv2nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index e724128..456e5ca 100644 --- a/flake.nix +++ b/flake.nix @@ -67,6 +67,12 @@ url = "git+ssh://gitea@git.mgaction.town:2222/darman/honcho-console.git"; inputs.nixpkgs.follows = "nixpkgs"; }; + # Turtle Beach Swarm II RE (KB7/KP7); terra uses its `release` module to + # take the KB7 out of host control after a warm reboot from Windows. + turtle-beach-swarm-re = { + url = "git+ssh://gitea@git.mgaction.town:2222/darman/turtle-beach-swarm-re.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, disko, nixos-anywhere, sops-nix, nixos-images, home-manager, mediamanager-nix, authentik-nix, ... }@inputs: diff --git a/hosts/terra/configuration.nix b/hosts/terra/configuration.nix index 530d29d..311cc4d 100644 --- a/hosts/terra/configuration.nix +++ b/hosts/terra/configuration.nix @@ -22,8 +22,12 @@ in ../../services/desktop/librechat.nix ../../services/desktop/luna-voice.nix ../../services/dev/turtle-beach-re.nix + inputs.turtle-beach-swarm-re.nixosModules.release ]; + # Swarm leaves the KB7 in host control after a warm reboot from Windows. + services.turtle-beach-release.enable = true; + # Talk to luna (Hermes Agent on mars) with SUPER+V — see # hosts/terra/home/hyprland.nix for the push-to-talk binds. homelab.lunaVoice = {