diff --git a/modules/nixos/hardware/bluetooth/default.nix b/modules/nixos/hardware/bluetooth/default.nix index 655e030..5d5d8ad 100755 --- a/modules/nixos/hardware/bluetooth/default.nix +++ b/modules/nixos/hardware/bluetooth/default.nix @@ -1,12 +1,12 @@ { pkgs, config, - flake, ... }: let - inherit (flake.config.machines) devices; - hostname = config.networking.hostName; + + hyprland = config.programs.hyprland.enable; + niri = config.programs.niri.enable; in { hardware = { @@ -25,5 +25,5 @@ in ]; }; }; - services.blueman.enable = if hostname == devices.deimos.name then false else true; + services.blueman.enable = if hyprland || niri == true then true else false; }