From c373abf37ca9fe0c3e4d0b681f079ec8a3f8cce4 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Tue, 24 Jan 2023 20:26:59 +0000 Subject: [PATCH] gendry: enable bluetooth --- .../bluetooth.nix | 6 ++++++ .../default.nix | 1 + .../persist.nix | 8 +++++++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/bluetooth.nix diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/bluetooth.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/bluetooth.nix new file mode 100644 index 0000000..d7437ae --- /dev/null +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/bluetooth.nix @@ -0,0 +1,6 @@ +{ config, pkgs, lib, ... }: + +{ + config.hardware.bluetooth.enable = true; + config.environment.systemPackages = with pkgs; [ bluez-tools ]; +} diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix index 726786a..1b7960b 100644 --- a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix @@ -10,6 +10,7 @@ ../../modules/common/default.nix ../../modules/desktop/awesome/default.nix ../../modules/spotify/default.nix + ./bluetooth.nix ./hardware-configuration.nix ./persist.nix ./resilio.nix diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix index 41b055f..30e1449 100644 --- a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix @@ -23,7 +23,7 @@ ]; }; - ## Persistent directory symlinks + ## Persistent directories and symlinks systemd.tmpfiles.rules = [ ### Persistent home subdirectories "L /root/local - - - - /data/users/root" @@ -54,4 +54,10 @@ device = "/data/system/var/lib/tailscale"; options = [ "bind" ]; }; + + ## Bluetooth + fileSystems."/var/lib/bluetooth" = { + device = "/data/system/var/lib/bluetooth"; + options = [ "bind" ]; + }; }