bluetooth automation

This commit is contained in:
vitrial 2024-10-11 00:07:35 -04:00
parent ecb7354ab4
commit b4dfc0ec53
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
nixos/hardware-configuration.nix

View File

@ -9,4 +9,17 @@
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true; services.blueman.enable = true;
systemd.user.services.auto-bluetooth = {
description = "auto-bluetooth";
serviceConfig = {
Type = "forking";
ExecStart = "/home/vitrial/.local/bin/bluetooth-autoconnect";
ExecStop = "pkill bluetooth-autoconnect";
Restart = "on-failure";
};
wantedBy = [ "default.target" ];
};
systemd.services.auto-bluetooth.enable = true;
} }