New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/samba: Requires shares to be mounted #99065
base: master
Are you sure you want to change the base?
nixos/samba: Requires shares to be mounted #99065
Conversation
This is useful in case the shares live e.g. on an external disk or other location which is a `noauto` mount.
I was able to successfully nix-build nixos/tests/samba.nix on a Linux machine running sandboxed Nix. |
Hmm seems to be making sense to me, though I'm wondering: Why don't we do it for every service that uses a certain directory to do something? I wouldn't expect the service to be taking care of that for me, in case I use non trivial |
I don't think it's something we'd want to put in every module, but I think it would be nice to have for services which are mostly meant for storing [large amounts of] data. For example, I copied this from the postgresql module which has had this for 8 years, since 2326c6d. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my system update to work.
However, I take back my approval. Since:
This is missing from the |
I marked this as stale due to inactivity. → More info |
Hello, What's the status of this PR, I think it would be a good addition. Do you please to refresh it so I can review it ? |
Motivation for this change
This is useful in case the shares live e.g. on an external disk
or other location which is a
noauto
mount.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)