diff options
author | Qyriad <qyriad@qyriad.me> | 2024-04-27 17:28:56 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-04-29 01:19:21 +0000 |
commit | aae12f5848d930abbf938f480f9851e77a234505 (patch) | |
tree | adf9273c00b7ee108a318264bf1447b0c455fffe /tests/nixos/nix-upgrade-nix.nix | |
parent | 2bd57d4d36f66de00fa4f791569056e58598e782 (diff) |
fix `nix upgrade-nix` on new-style profiles
nix3-profile automatically migrates any profile its used on to its style
of profile -- the ones with manifest.json instead of manifest.nix. On
non-NixOS systems, Nix is conventionally installed to the profile at
/nix/var/nix/profiles/default, so if a user passed that to `--profile`
of `nix profile`, then it would break upgrade-nix from ever working
again, without recreating the profile.
This commit fixes that, and allows upgrade-nix to work on either kind of
profile.
Fixes #16.
Change-Id: I4c49b1beba93bb50e8f8a107edc451affe08c3f7
Diffstat (limited to 'tests/nixos/nix-upgrade-nix.nix')
0 files changed, 0 insertions, 0 deletions