From 37b0526524131594bf1ca74be8b73b9ed4f94011 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 9 Sep 2022 14:11:34 +0100 Subject: [PATCH] nixos/tower: Enable bluez --- nixos/boxes/tower/default.nix | 1 + nixos/modules/gui.nix | 2 ++ nixos/modules/tmproot.nix | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/nixos/boxes/tower/default.nix b/nixos/boxes/tower/default.nix index cf9ff85..e1c80d4 100644 --- a/nixos/boxes/tower/default.nix +++ b/nixos/boxes/tower/default.nix @@ -17,6 +17,7 @@ opengl.extraPackages = with pkgs; [ intel-media-driver ]; + bluetooth.enable = true; }; boot = { diff --git a/nixos/modules/gui.nix b/nixos/modules/gui.nix index 319b004..8824ac9 100644 --- a/nixos/modules/gui.nix +++ b/nixos/modules/gui.nix @@ -23,5 +23,7 @@ in jack.enable = true; }; }; + + programs.dconf.enable = true; }; } diff --git a/nixos/modules/tmproot.nix b/nixos/modules/tmproot.nix index 2889c47..5c1f6d9 100644 --- a/nixos/modules/tmproot.nix +++ b/nixos/modules/tmproot.nix @@ -351,6 +351,12 @@ in } ]; }) + (mkIf config.hardware.bluetooth.enable { + my.tmproot.persistence.config.directories = [ "/var/lib/bluetooth" ]; + }) + (mkIf config.services.blueman.enable { + my.tmproot.persistence.config.directories = [ "/var/lib/blueman" ]; + }) (mkIf config.my.build.isDevVM { fileSystems = mkVMOverride { # Hijack the "root" device for persistence in the VM