nixos-config/profiles/bluetooth.nix

21 lines
547 B
Nix
Raw Permalink Normal View History

2024-02-08 23:21:10 +03:00
{ config, lib, ... }: {
2023-03-27 20:57:06 +03:00
config = lib.mkIf (!config.deviceSpecific.isServer) {
2023-08-05 07:42:57 +03:00
services.blueman.enable = true;
2023-03-27 20:57:06 +03:00
hardware.bluetooth = {
enable = true;
2023-08-12 21:27:27 +03:00
settings = {
General = { Experimental = true; };
};
2023-03-27 20:57:06 +03:00
};
2022-12-14 23:46:25 +03:00
2023-03-27 20:57:06 +03:00
persist.state.directories = [ "/var/lib/bluetooth" ];
2022-12-14 23:46:25 +03:00
2023-03-27 20:57:06 +03:00
home-manager.users.${config.mainuser}.programs.zsh.shellAliases = let
headphones = "D8:37:3B:60:5D:55";
in {
"hpc" = "bluetoothctl connect ${headphones}";
"hpd" = "bluetoothctl disconnect ${headphones}";
};
2022-12-14 23:46:25 +03:00
};
2023-08-05 07:42:57 +03:00
}