Commit 1f1a758e authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nixos/installation-device: allow nix-copy for root/nixos user

For non-interactive installation it's quite handy to be able to nix copy additional dependencies to the system.
While this is possible for the root user, we cannot easily ssh into it, as we don't allow root login with a password.
By making nixos a trusted user, we can do "passwd && sudo systemctl start sshd" and than run nixos-anywhere
parent 3013bd06
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -120,5 +120,8 @@ with lib;
      [PStore]
      Unlink=no
    '';

    # allow nix-copy to live system
    nix.settings.trusted-users = [ "root" "nixos" ];
  };
}