commit cfa78c025ffce19cabcea88521510f04b185c086
parent 904a0e1f5dba7dd8e2a9b0372ec7add7abe3a886
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:26:15 +0200
parent 904a0e1f5dba7dd8e2a9b0372ec7add7abe3a886
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:26:15 +0200
config/nixos/modules/hardware: add bluetooth
1 file changed, 27 insertions(+), 0 deletions(-)
diff --git a/config/nixos/modules/hardware/bluetooth.nix b/config/nixos/modules/hardware/bluetooth.nix @@ -0,0 +1,27 @@ +{ + povSelf, + config, + lib, + ... +}: +let + inherit (lib) types; + cfg = lib.getAttrFromPath povSelf config; + +in +{ + + options.enable = { + type = types.bool; + default = false; + }; + + config = lib.mkIf cfg.enable { + modules.filesystem.impermanence.system.dirs = [ + "/var/lib/bluetooth" + ]; + + hardware.bluetooth.enable = true; + }; + +}