nix run --extra-experimental-features nix-command --extra-experimental-features flakes nix-darwin -- switch --flake /path/to/flake.nix
nix run /path/to/flake.nix#[email protected]
To swtich
to the new configuration after home-manager
has been updated.
home-manager switch --show-trace --flake /path/to/flake.nix
To switch
to the new configuration after darwin
system has been updated.
darwin-rebuild switch --show-trace --flake /path/to/flake.nix
To check to see if changes made to a flake are proper.
nix flake check --all-systems
NB: Just the /path/to/the/dir
and not the file itself (just the basedir)