bluetooth.nix: home to system packages

This commit is contained in:
Charlie Root 2024-11-01 20:55:12 +01:00
commit 4b2b96d13c
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -5,7 +5,6 @@
... ...
}: let }: let
cfg = config.modules.system.hardware.bluetooth; cfg = config.modules.system.hardware.bluetooth;
inherit (config.modules.other.system) username;
inherit (lib) mkIf; inherit (lib) mkIf;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -13,8 +12,7 @@ in {
enable = true; enable = true;
powerOnBoot = mkIf cfg.powerOnBoot true; powerOnBoot = mkIf cfg.powerOnBoot true;
}; };
environment.systemPackages = with pkgs; [
home-manager.users.${username}.home.packages = with pkgs; [
bluetuith bluetuith
bluez bluez
blueman blueman