Ver Fonte

feat(odin): add git to automated home-manager setup service path

Zander Hawke há 7 meses atrás
pai
commit
c2dbdb103a
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      hosts/odin/users/thomas.nix

+ 4 - 2
hosts/odin/users/thomas.nix

@@ -30,14 +30,16 @@
         RemainAfterExit = true;
       };
 
+      path = [ pkgs.git pkgs.nix ];
+
       script = ''
         if [ "$USER" = "thomas" ] && [ ! -d "$HOME/workspace/control/home" ]; then
           echo "Setting up home environment..."
           mkdir -p "$HOME/workspace/control"
           cd "$HOME/workspace/control"
-          ${git} clone [email protected]:control/home
+          ${git} clone https://codeberg.org/control/home.git
           cd home
-          ${nix} run github:nix-community/home-manager -- switch --flake .#thomas@odin
+          ${nix} run github:nix-community/home-manager -- switch -b backup --flake .#thomas@odin
         fi
       '';
     };