aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-26 17:58:35 -0300
committerEuAndreh <eu@euandre.org>2023-02-26 17:58:35 -0300
commita55e0e40171baa3cca1194447cd43ce19002f5c5 (patch)
tree715a3cfc61822f655f6c8a8b55474f2b346dba26 /bin
parentbin/reconfigure: Use current version of {home,system}.scm files (diff)
downloaddotfiles-a55e0e40171baa3cca1194447cd43ce19002f5c5.tar.gz
dotfiles-a55e0e40171baa3cca1194447cd43ce19002f5c5.tar.xz
Update NixOS channel in update(1) instead of upgrade(1)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reconfigure2
-rwxr-xr-xbin/update6
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
diff --git a/bin/update b/bin/update
index c3c7d4a..53f0aa0 100755
--- a/bin/update
+++ b/bin/update
@@ -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