diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-27 18:04:07 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-27 18:04:07 -0800 |
commit | a7c9ba039b0d38b9d4066d0f05ff1a4647f48973 (patch) | |
tree | f1bbcb0ab7993a86608e2b3e408c6cda0c20f401 | |
parent | samba: fix configuration (diff) | |
download | world-a7c9ba039b0d38b9d4066d0f05ff1a4647f48973.tar.gz |
tahoe: create some directories
Ensure at least /data/media/music is created with the proper ownership.
Diffstat (limited to '')
-rw-r--r-- | hosts/tahoe/default.nix | 15 |
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 |