Nixos-rebuild: Difference between revisions

imported>Williamvds
Add --use-remote-sudo option and hints
imported>Raboof
Basic functionality: update error message, for better search engine matching
Line 39: Line 39:


{{Note|When rebuilding a remote host, you may see similar errors to the following:
{{Note|When rebuilding a remote host, you may see similar errors to the following:
<blockquote>error: cannot add path '/nix/store/...' because it lacks a valid signature</blockquote>
<blockquote>error: cannot add path '/nix/store/...' because it lacks a signature by a trusted key</blockquote>
If this occurs, add your non-root user or group to the <code>trusted-users</code> list in <code>/etc/nix/nix.conf</code>, which is the <code>nix.settings.trusted-users</code> option in NixOS.}}
If this occurs, add your non-root user or group to the <code>trusted-users</code> list in <code>/etc/nix/nix.conf</code>, which is the <code>nix.settings.trusted-users</code> option in NixOS.}}


For a full list of sub-commands and options, see the <code>nixos-rebuild</code> man page.
For a full list of sub-commands and options, see the <code>nixos-rebuild</code> man page.
===Specifying a different configuration location===
===Specifying a different configuration location===
====without Flakes====
====without Flakes====