Skip to content

Custom update command #336

@viperML

Description

@viperML

I'm not a fan of implementing nixos-rebuild --upgrade for non-flake setups as nix-chanel --update, as I don't use flakes neither channels, but rather npins.

Perhaps it would be useful to have a generic update command provided by an env variable or a flag:

$ export NH_UPDATE_CMD="cd $DOTFILES; npins update"

$ nh os switch --update

Shouldn't be too hard to implement. NH_UPDATE_CMD should be a bash script.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions