commit 13247cd9d2e82a7fcf46d1813aad0617ec4956d0
parent c01b7ba3bbf6ff9822e4da72fe203a0d10bdd34d
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 21 Dec 2023 15:30:09 +0100
parent c01b7ba3bbf6ff9822e4da72fe203a0d10bdd34d
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 21 Dec 2023 15:30:09 +0100
configurations/darwin: remove `speakers.nix`
1 file changed, 0 insertions(+), 28 deletions(-)
diff --git a/configurations/darwin/speakers.nix b/configurations/darwin/speakers.nix @@ -1,28 +0,0 @@ -{ inputs, config, pkgs, lib, ... }: - -let - switchSpeakers = pkgs.writeScript "switchSpeakers.sh" '' - #!/usr/bin/env bash - - curl -d '{"accessToken": "${inputs.local-secrets.hosts.lollo.smartied.accessToken}", "type": "SwitchStateAction", "deviceName": "relay-pc-speakers", "toggle": true}' http://10.0.0.1:5000 - ''; - -in { - - services.skhd = { - enable = true; - skhdConfig = '' - # Switch speakers - lalt - delete : ${switchSpeakers} - ''; - }; - - launchd.user.agents.SpeakerDaemon = { - path = [ config.environment.systemPath ]; - - serviceConfig = { - ProgramArguments = [ "${pkgs.SpeakerDaemon}/bin/SpeakerDaemon" ]; - KeepAlive = true; - }; - }; -}