diff options
author | EuAndreh <eu@euandre.org> | 2023-02-26 17:58:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-26 17:58:35 -0300 |
commit | a55e0e40171baa3cca1194447cd43ce19002f5c5 (patch) | |
tree | 715a3cfc61822f655f6c8a8b55474f2b346dba26 | |
parent | bin/reconfigure: Use current version of {home,system}.scm files (diff) | |
download | dotfiles-a55e0e40171baa3cca1194447cd43ce19002f5c5.tar.gz dotfiles-a55e0e40171baa3cca1194447cd43ce19002f5c5.tar.xz |
Update NixOS channel in update(1) instead of upgrade(1)
-rwxr-xr-x | bin/reconfigure | 2 | ||||
-rwxr-xr-x | bin/update | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/reconfigure b/bin/reconfigure index 7876acf..de31785 100755 --- a/bin/reconfigure +++ b/bin/reconfigure @@ -78,5 +78,5 @@ timeout "$TWO_HOURS" \ if [ -e /etc/nixos/configuration.nix ]; then pass show "$HOSTNAME"/andreh | head -n1 | - sudo -S nixos-rebuild switch --upgrade + sudo -S nixos-rebuild switch fi @@ -63,6 +63,12 @@ done shift $((OPTIND - 1)) +if [ -e /etc/nixos/configuration.nix ]; then + pass show "$HOSTNAME"/andreh | + head -n1 | + sudo -S nix-channel --update +fi + guix pull -v3 rfc -u |