nixpkgs/nixos/modules/installer/tools
Eelco Dolstra da702a4034
nixos-enter: Don't require root
Of course, you'll get a bunch of warnings from the activation script:

  $ nixos-enter --root /tmp/mnt/
  setting up /etc...
  mount: /dev: permission denied.
  mount: /dev/pts: permission denied.
  mount: /dev/shm: permission denied.
  mount: /sys: permission denied.
  /nix/var/nix/profiles/system/activate: line 74: /proc/sys/kernel/modprobe: Permission denied
  chown: changing ownership of '/run/wrappers/wrappers.0pKlU8JsvV/dbus-daemon-launch-helper': Invalid argument
  NOTE: Under Linux, effective file capabilities must either be empty, or
        exactly match the union of selected permitted and inheritable bits.
  Failed to set capabilities on file `/run/wrappers/wrappers.0pKlU8JsvV/ping' (Operation not permitted)
  chown: changing ownership of '/run/wrappers/wrappers.0pKlU8JsvV/unix_chkpwd': Invalid argument

  [root@nixos:/]#
2018-02-07 17:59:04 +01:00
..
nixos-build-vms Remove some obsolete references to <nixos> 2015-08-05 17:37:08 +02:00
auto-upgrade.nix auto-upgrade: add proxy support 2017-08-30 01:25:47 +02:00
get-version-suffix Revert adding .git-revision unconditionally 2016-08-09 14:15:06 +02:00
nix-fallback-paths.nix nix: 1.11.15 -> 1.11.16 2017-12-12 17:46:21 +01:00
nixos-enter.sh nixos-enter: Don't require root 2018-02-07 17:59:04 +01:00
nixos-generate-config.pl nixos-generate-config: enforce umask 0022, fixes #30954 2017-10-30 21:59:37 +00:00
nixos-install.sh nixos-install: Don't require root 2018-02-07 17:20:26 +01:00
nixos-option.sh nixos-option: don't eval description 2017-11-14 23:06:44 +01:00
nixos-prepare-root.sh nixos-prepare-root: chmod if dir already exists 2017-11-04 15:07:36 +00:00
nixos-rebuild.sh nixos-rebuild: Respect empty NIX_REMOTE 2017-07-07 11:58:10 +02:00
nixos-version.sh nixos-version: fix syntax error and add -h (#16906) 2016-07-13 09:11:32 +02:00
tools.nix nixos-install: Make compatible with Nix 2.0 2018-02-05 19:50:36 +01:00