diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-12-07 12:49:07 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-06-05 20:43:19 +0000 |
commit | 89ce04279ca28885e809e5694e56240f1770e4df (patch) | |
tree | 8c8b32f230f3bbf3dbca15d0711d4447b65f7b8f | |
parent | d0d82595bf91d4b6d86a0e82e8fb2c490d3a069b (diff) | |
download | nixlib-89ce04279ca28885e809e5694e56240f1770e4df.tar nixlib-89ce04279ca28885e809e5694e56240f1770e4df.tar.gz nixlib-89ce04279ca28885e809e5694e56240f1770e4df.tar.bz2 nixlib-89ce04279ca28885e809e5694e56240f1770e4df.tar.lz nixlib-89ce04279ca28885e809e5694e56240f1770e4df.tar.xz nixlib-89ce04279ca28885e809e5694e56240f1770e4df.tar.zst nixlib-89ce04279ca28885e809e5694e56240f1770e4df.zip |
modules/persistence/bluetooth: use a bind mount
This has changed in recent Nixpkgs to be a StateDirectory, so systemd won't let it be a symlink any more.
-rw-r--r-- | modules/persistence/bluetooth/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/persistence/bluetooth/default.nix b/modules/persistence/bluetooth/default.nix index 0f3bc0852341..ddb4d7da706b 100644 --- a/modules/persistence/bluetooth/default.nix +++ b/modules/persistence/bluetooth/default.nix @@ -2,9 +2,13 @@ { config = lib.mkIf config.hardware.bluetooth.enable { + fileSystems."/var/lib/bluetooth" = { + device = "/persist/safe/var/lib/bluetooth"; + options = [ "bind" ]; + }; + systemd.tmpfiles.rules = [ "d /persist/safe/var/lib/bluetooth 0700" - "L+ /var/lib/bluetooth - - - - /persist/safe/var/lib/bluetooth" ]; }; } |