While the Nix store is almost always at `/nix/store`, we shouldn't assume it to be. Checking only the trailing part of the link is less exact but removes this bad assumption. I also added a check for the symlink's contents when overwriting it to more accurately check whether we own it and should replace it. |
||
|---|---|---|
| .. | ||
| defaults | ||
| activation-scripts.nix | ||
| applications.nix | ||
| checks.nix | ||
| default.nix | ||
| defaults-write.nix | ||
| etc.nix | ||
| flake-overrides.nix | ||
| keyboard.nix | ||
| launchd.nix | ||
| patches.nix | ||
| shells.nix | ||
| version.nix | ||