From a7c9ba039b0d38b9d4066d0f05ff1a4647f48973 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 27 Feb 2022 18:04:07 -0800 Subject: tahoe: create some directories Ensure at least /data/media/music is created with the proper ownership. --- hosts/tahoe/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'hosts') 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 -- cgit 1.4.1