bluetooth automation
This commit is contained in:
parent
ecb7354ab4
commit
b4dfc0ec53
|
@ -0,0 +1 @@
|
|||
nixos/hardware-configuration.nix
|
|
@ -9,4 +9,17 @@
|
|||
hardware.bluetooth.powerOnBoot = 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue