feat: better modules aragement.
This commit is contained in:
parent
de11ee0676
commit
6e967a751f
49 changed files with 27 additions and 19 deletions
15
modules/linux/nixos/bluetooth.nix
Normal file
15
modules/linux/nixos/bluetooth.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
# Enable bluetooth
|
||||
options = {
|
||||
crony.bluetooth.enable = lib.mkEnableOption "enable bluetooth";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.bluetooth.enable {
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue