about summary refs log tree commit diff stats
path: root/bootstrap/setup
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-04-07 19:14:39 +0200
committerene <ene@sils.li>2023-04-07 19:14:39 +0200
commitc2ab88680de9512b80f8ea8dd73b67c5028b58e0 (patch)
tree9eee2193c9df4512a925837b73f493bae327dab9 /bootstrap/setup
parentFix(hm/conf/zsh): Move the wine directory (diff)
downloadnixos-config-c2ab88680de9512b80f8ea8dd73b67c5028b58e0.tar.gz
nixos-config-c2ab88680de9512b80f8ea8dd73b67c5028b58e0.zip
Feat(treewide): Move to codeberg for hosting
What am I'm to do? They have ssh authentication.
Diffstat (limited to '')
-rwxr-xr-xbootstrap/setup/setup.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap/setup/setup.sh b/bootstrap/setup/setup.sh
index d8007a14..d67c39ff 100755
--- a/bootstrap/setup/setup.sh
+++ b/bootstrap/setup/setup.sh
@@ -6,7 +6,7 @@ msg "Select a host-config:"
 hosts=$(mktmp);
 host="";
 
-awk -F "." '/inputs.nixpkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://git.sils.li/ene/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts;
+awk -F "." '/inputs.nixpkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://codeberg.org/ene/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts;
 
 while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do
     i=1;
@@ -23,10 +23,10 @@ while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)"
         warning "No host selected. Select a host to continue.\n"
     fi
 done
-nixos-install --flake git+https://git.sils.li/ene/nixos-config#${host} --no-root-passwd
+nixos-install --flake git+https://codeberg.org/ene/nixos-config#${host} --no-root-passwd
 
 # clone the git config
-git clone https://git.sils.li/ene/nixos-config /mnt/srv/etc/nixos
+git clone git@codeberg.org:ene/nixos-config.git /mnt/srv/etc/nixos
 
 # setup persistent home dir
 mkdir --parents /mnt/srv/home
@@ -36,7 +36,7 @@ chmod 700 /mnt/srv/home
 readp "Do you want to continue with the user configuration setup?[N/y]: " result;
 case "$result" in
     [yY])
-        nix run "git+https://git.sils.li/ene/nixos-config#config_setup" --experimental-features 'nix-command flakes';
+        nix run "git+https://codeberg.org/ene/nixos-config#config_setup" --experimental-features 'nix-command flakes';
         ;;
     *)
         msg "Well, if you want to do everything yourself..."