about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-27 18:04:07 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-27 18:04:07 -0800
commita7c9ba039b0d38b9d4066d0f05ff1a4647f48973 (patch)
treef1bbcb0ab7993a86608e2b3e408c6cda0c20f401
parentsamba: fix configuration (diff)
downloadworld-a7c9ba039b0d38b9d4066d0f05ff1a4647f48973.tar.gz
tahoe: create some directories
Ensure at least /data/media/music is created with the proper ownership.
-rw-r--r--hosts/tahoe/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/tahoe/default.nix b/hosts/tahoe/default.nix
index b7f2087..81b8a87 100644
--- a/hosts/tahoe/default.nix
+++ b/hosts/tahoe/default.nix
@@ -31,6 +31,21 @@
     };
   };
 
+  # create some directories and ensure proper ownership
+  system.activationScripts = {
+    base-dirs = {
+      text = ''
+      if [ ! -d /data/media/music ]; then
+        mkdir /data/media/music
+        chown -R fcuny:fcuny /data/media/music
+      fi
+      '';
+      deps = [ ];
+    };
+  };
+
+  networking.firewall.enable = false;
+
   # This value determines the NixOS release from which the default
   # settings for stateful data, like file locations and database versions
   # on your system were taken. It‘s perfectly fine and recommended to leave