-
Notifications
You must be signed in to change notification settings - Fork 21
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
Reuse /run/current-system/sw
instead of /run/system-manager
#45
Comments
I'd prefer doing the symlink and making it optional, so that it can be turned off in case anyone has issues with it. |
Oh I just noticed that NixOS itself is on the list of supported systems: system-manager/nix/modules/default.nix Lines 139 to 145 in 549bc38
So indeed it should be an option that one can toggle on or off. |
To help make modules more portable, is there some attribute that would return |
I don't think we have that right now, but it would be rather easy to introduce an option for this. It might be a rather hard sell to get that merged into nixpkgs though. |
i suggest there is prior art for a change like this additionally, with more and more nix based systems popping up i think this is a good idea to have an option for this at least as an tangentially related... seems like a PR replacing all instances of
please do, and if you don't mind i would love a ping on that PR |
In nixpkgs they also use pathsToLink = lib.mkOption {
type = lib.types.listOf lib.types.str;
# Note: We need `/lib' to be among `pathsToLink' for NSS modules
# to work.
default = [];
example = ["/"];
description = "List of directories to be symlinked in {file}`/run/current-system/sw`.";
}; |
Is your feature request related to a problem? Please describe.
I was trying to adapt nixos modules for system-manager and noticed that many of them have hard-coded
/run/current-system/sw
; see e.g.One must modify
/run/current-system -> /run/system-manager
in order to port such modules.Describe the solution you'd like
Since
/run/current-system
is not used in a generic non-NixOS system I believe we can simply re-use the path.Describe alternatives you've considered
/run/current-system -> /run/system-manager
module by module./run/current-system -> /run/system-manager
when profiles are activated.Additional context
I am not sure if it's safe to do this. It feels safe to me since
system-manager
should only be used on non-NixOS so there will not be conflicts. But I don't know.The text was updated successfully, but these errors were encountered: