dostosowanie instalatora pod siebie
This commit is contained in:
@@ -58,7 +58,7 @@ Simply copy this and run it:
|
|||||||
|
|
||||||
```
|
```
|
||||||
nix-shell -p git curl
|
nix-shell -p git curl
|
||||||
sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)
|
sh <(curl -L https://gitea.garandplg.com/GarandPLG/nix-zaneyos/src/branch/main/install-zaneyos.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 🦽 Manual:
|
#### 🦽 Manual:
|
||||||
@@ -66,7 +66,7 @@ sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)
|
|||||||
Clone this repo & enter it:
|
Clone this repo & enter it:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://gitlab.com/zaney/zaneyos.git
|
git clone https://gitea.garandplg.com/GarandPLG/nix-zaneyos.git
|
||||||
cd zaneyos
|
cd zaneyos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ fi
|
|||||||
echo "-----"
|
echo "-----"
|
||||||
|
|
||||||
echo "Cloning & Entering ZaneyOS Repository"
|
echo "Cloning & Entering ZaneyOS Repository"
|
||||||
git clone https://gitlab.com/zaney/zaneyos.git
|
git clone https://gitea.garandplg.com/GarandPLG/nix-zaneyos.git
|
||||||
cd zaneyos || exit
|
cd zaneyos || exit
|
||||||
mkdir hosts/"$hostName"
|
mkdir hosts/"$hostName"
|
||||||
cp hosts/default/*.nix hosts/"$hostName"
|
cp hosts/default/*.nix hosts/"$hostName"
|
||||||
@@ -66,9 +66,9 @@ git add .
|
|||||||
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
||||||
|
|
||||||
|
|
||||||
read -rp "Enter your keyboard layout: [ us ] " keyboardLayout
|
read -rp "Enter your keyboard layout: [ pl ] " keyboardLayout
|
||||||
if [ -z "$keyboardLayout" ]; then
|
if [ -z "$keyboardLayout" ]; then
|
||||||
keyboardLayout="us"
|
keyboardLayout="pl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i "/^\s*keyboardLayout[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$keyboardLayout\"/" ./hosts/$hostName/variables.nix
|
sed -i "/^\s*keyboardLayout[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$keyboardLayout\"/" ./hosts/$hostName/variables.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user