-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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: define defaut state dir (/var...) prefix #1773
Comments
Note: many packages need to know the state dir at configure-time (so rebuild is typically needed). |
Well yes, they won't work with changed state dir if they won't get rebuilt,
|
What's the use case for this? I mean, I can see why you want to override the state directory for a specific service (like PostgreSQL), but there already are options for that. |
Well yes, but then you can globally override and don't have to override for On Tue, Feb 18, 2014 at 5:26 PM, Eelco Dolstra [email protected]:
|
It's just one flag that could not hurt anyone and is used only for services. I tought |
I think this will be more useful once we have user services, but no real objections from me (other than the general objection that we shouldn't provide configurability that doesn't provide useful benefits) |
I already have
|
Sure, is your user services implementation available as well? |
Here: https://github.com/kiberpipa/nix-rehash/tree/master/nix-servicesBasicly
|
Will make a pull request with
|
Closing since it's little value and PR can be opened any time |
We need an option to define a default state dir prefix, something like
system.defaultStateDir = "/var";
. other nixos modules can then use it likedataDir = ${config.system.defaultStateDir}/db/postgresql;
.I want to know:
This is also related to #1689
The text was updated successfully, but these errors were encountered: