Sleep changed, added headphones command.
This commit is contained in:
@@ -11,5 +11,6 @@
|
||||
./reaper.nix
|
||||
./discord.nix
|
||||
./spotify.nix
|
||||
./headphones-whmx4000.nix
|
||||
];
|
||||
}
|
||||
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEnabled =
|
||||
config.azos.headphones-whmx4000.enable;
|
||||
in {
|
||||
options.azos.headphones-whmx4000.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
( pkgs.writeShellScriptBin
|
||||
"azos-connect-headphones-whmx4000"
|
||||
"echo \"connect AC:80:0A:AF:E1:C2\" | bluetoothctl" )
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user