0

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.

1 Answer 1

1

I would probably use systemd.tmpfiles.rules. See its entry in docs, e.g. man configuration.nix.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.