summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-08-02 13:06:16 +0200
committersils <sils@sils.li>2023-08-02 13:07:07 +0200
commitb32a6711db58b4d8872cd18b15632e2f47dbcba5 (patch)
tree8c13aa1ab7844783b669f253cd7b727a812a2ea2
parentFix(u/sils/zsh): Add sys-update function (diff)
downloadnix-config-b32a6711db58b4d8872cd18b15632e2f47dbcba5.tar.gz
nix-config-b32a6711db58b4d8872cd18b15632e2f47dbcba5.zip
Feat(sys/impermanence): Add persistent dir /var/lib/bluetooth
Diffstat (limited to '')
-rw-r--r--sys/default.nix1
-rw-r--r--sys/impermanence/default.nix10
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/default.nix b/sys/default.nix
index 37fcb5a..d38321a 100644
--- a/sys/default.nix
+++ b/sys/default.nix
@@ -4,6 +4,7 @@
     ./desktop/awesome
     ./environment
     ./font
+    ./impermanence
     ./keyboard
     ./nix
     ./packages
diff --git a/sys/impermanence/default.nix b/sys/impermanence/default.nix
new file mode 100644
index 0000000..d62b871
--- /dev/null
+++ b/sys/impermanence/default.nix
@@ -0,0 +1,10 @@
+{...}: {
+  environment.persistence."/srv".directories = [
+    {
+      directory = "/var/lib/bluetooth";
+      user = "root";
+      group = "root";
+      mode = "0700";
+    }
+  ];
+}