Reuse /run/current-system/sw
instead of /run/system-manager
#45
Labels
enhancement
New feature or request
/run/current-system/sw
instead of /run/system-manager
#45
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: