system: add config for networking and hardware
This commit is contained in:
parent
6de9934ffe
commit
049fd348b2
8 changed files with 118 additions and 17 deletions
20
modules/system/hardware/bluetooth.nix
Normal file
20
modules/system/hardware/bluetooth.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
}: let
|
||||
cfg = config.modules.system.hardware.bluetooth;
|
||||
inherit (config.modules.other.system) username;
|
||||
inherit (lib) mkIf;
|
||||
in {
|
||||
confg = mkIf cfg.enable {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = mkIf cfg.powerOnBoot true;
|
||||
};
|
||||
|
||||
home-manager.users.${username}.home.Packages = with pkgs; [
|
||||
bluetuith
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue