From bf62d5657a32ecf10f351df429764ffdab64e1c2 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 16 Apr 2023 20:34:42 +0200 Subject: [PATCH] Use git to update configs --- update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index da93462..dcca395 100755 --- a/update.sh +++ b/update.sh @@ -1,6 +1,7 @@ #!/usr/bin/env sh set -euo pipefail -curl -O https://gitea.exu.li/RealStickman/nixos-config/raw/branch/main/configuration.nix -curl -O https://gitea.exu.li/RealStickman/nixos-config/raw/branch/main/home-manager.nix -curl -O https://gitea.exu.li/RealStickman/nixos-config/raw/branch/main/system-packages.nix +git fetch -a +git reset --hard +git clean -fd +git pull