diff --git a/lil-maid/default.nix b/lil-maid/default.nix index 2ae0d6d..cf62717 100644 --- a/lil-maid/default.nix +++ b/lil-maid/default.nix @@ -3,6 +3,8 @@ sys = { enable = true; hostname = "lil-maid"; + + bluetooth.enable = true; }; masters.nero.enable = true; diff --git a/lil-maid/hw.nix b/lil-maid/hw.nix index d3babae..d4a6c3c 100644 --- a/lil-maid/hw.nix +++ b/lil-maid/hw.nix @@ -13,6 +13,8 @@ }; }; + services.blueman.enable = true; + boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelModules = [ "btusb" "kvm-amd" ]; diff --git a/m/sys.nix b/m/sys.nix index 5a7fe91..4e4b091 100644 --- a/m/sys.nix +++ b/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; + }; }; }