add bluetooth
This commit is contained in:
parent
ab22fcb51f
commit
689f5dea6d
3 changed files with 18 additions and 0 deletions
14
m/sys.nix
14
m/sys.nix
|
@ -13,6 +13,15 @@ in
|
|||
hostname = lib.mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
bluetooth = {
|
||||
enable = lib.mkEnableOption "bluetooth";
|
||||
powerOnBoot = lib.mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "whether to power on bluetooth on system startup";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf sys.enable {
|
||||
|
@ -23,5 +32,10 @@ in
|
|||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
hardware.bluetooth = lib.mkIf sys.bluetooth.enable {
|
||||
enable = true;
|
||||
powerOnBoot = sys.bluetooth.powerOnBoot;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue