Nixos-rebuild: Difference between revisions

imported>Williamvds
Entering a password with remote sudo
added note, that all flake files need to be tracked by the repo to rebuild successfully
Line 68: Line 68:
# nixos-rebuild switch --flake /etc/nixos#hostname
# nixos-rebuild switch --flake /etc/nixos#hostname
</syntaxHighlight>
</syntaxHighlight>
{{Note|If your flake files are part of a Git repository, only tracked files are considered for building. Nix flakes deliberately ignores untracked files in the repository and do not copy them over to the Nix store. You need to stage untracked files first if they are relevant for your flake config. Otherwise, an error will be raised that the untracked file could not be found at the flake's Nix store path.}}


===Internals===
===Internals===