Sample Header Ad - 728x90

NixOS: Ensure root-level folder exists

2 votes
2 answers
681 views
At work we tend to keep our large code workspaces under a /scratch folder. Is there a NixOS option to declare such a folder/file should exist? I know about environment.etc which will setup symlink from /etc into the nix store. Otherwise I'd have to resort to declare some systemd boot-up script, doing mkdir -p and so on - which feels ugly.
Asked by eisbaw (121 rep)
Jul 22, 2022, 08:30 AM
Last activity: Jul 7, 2025, 01:58 PM