• λλλ@programming.dev
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    Is that the equivalent to apt update and apt upgrade? I don’t want to apt dist-upgrade lol

    • Laser@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      When not using flakes, nixos-rebuild switch --upgrade is equivalent to apt update; apt upgrade. The equivalent to dist-upgrade is nix-channel add $NEW-CHANNEL-URL nixos and then performing a regular update.

      • λλλ@programming.dev
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        11 months ago

        Thanks. I’ve done switch many times after editing my config file. I’ve never added --upgrade!