mirror of
https://github.com/NixOS/nix.git
synced 2025-12-08 01:51:01 +01:00
‘geteuid’ gives us the user that the command is being run as, including in setuid modes. By using geteuid to determind id, we can avoid the ‘sudo -i’ hack when upgrading Nix. So now, upgrading Nix on macOS is as simple as: $ sudo nix-channel --update $ sudo nix-env -u $ sudo launchctl stop org.nixos.nix-daemon $ sudo launchctl start org.nixos.nix-daemon or $ sudo systemctl restart nix-daemon |
||
|---|---|---|
| .. | ||
| local.mk | ||
| nix-channel.cc | ||