Parcourir la source

Update nix-update script

Johan Rong il y a 2 mois
Parent
commit
1b6a2d641c
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      home/features/application/bashrc.nix

+ 3 - 3
home/features/application/bashrc.nix

@@ -17,14 +17,14 @@ home = {
             set -e
 
             ORIG_CWD="$(pwd)"
+            trap 'cd "$ORIG_CWD"' EXIT
 
-            sudo nix-channel --update
             cd "$HOME/nix-dots"
             nix flake update
+
             nh os switch
+
             flatpak update -y
-            sudo flatpak update -y
-            cd "$ORIG_CWD"
           }
           jc() {
             git clone https://github.com/johron/$1