create bluetooth module

This commit is contained in:
2024-12-29 14:10:57 +01:00
parent 9a921d531a
commit 15de1e42e9
4 changed files with 24 additions and 9 deletions

View File

@ -68,6 +68,10 @@ in {
keepassxc # used for secrets instead of gnome-keyring
];
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
wayland.windowManager.sway = {
enable = true;
systemd = {

View File

@ -0,0 +1,19 @@
{
lib,
config,
...
}: let
cfg = config.myConfig.bluetooth;
in {
options.myConfig.bluetooth = {
enable = lib.mkEnableOption "bluetooth";
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.blueman.enable = true;
};
}

View File

@ -34,5 +34,6 @@ in {
};
};
};
boot.binfmt.emulatedSystems = ["aarch64-linux"];
};
}