Is `--upgrade` pointless when using `nixos-rebuild` with flakes?

just the title. an example would be running nix flake lock --update-inputs nixpkgs: would nixos-rebuild switch upgrade all of the packages for my system based on that updated input? or would i still need to specify the --upgrade flag?

i’ve always used it since i transferred everything over to flakes, but i was thinking about it and wondered if it would even matter since everything is evaluated from the inputs. thanks for any responses!

1 Like

You’re correct, you don’t need that flag anymore when using flakes. That flag was just a way to do essentially nix-channel --update nixos before the rebuild, but since you no longer are using the channel with flakes it’s not necessary.

1 Like

oops! thought i already replied here, sorry about that

thank you so much though, now one less thing can be in my justfile :slight_smile:

1 Like