update
This commit is contained in:
26
docs/scripts/create_guest_config.sh
Normal file
26
docs/scripts/create_guest_config.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[[ -d "./hosts" ]] || (
|
||||
exit 1
|
||||
echo "Folder ./hosts not found"
|
||||
)
|
||||
|
||||
LAPTOP_CONFIG="./hosts/laptop"
|
||||
GUEST_CONFIG="./hosts/guest"
|
||||
|
||||
cp "$LAPTOP_CONFIG/configuration.nix" "$GUEST_CONFIG/configuration.nix"
|
||||
cp "$LAPTOP_CONFIG/variables.nix" "$GUEST_CONFIG/variables.nix"
|
||||
|
||||
# Remove the NVIDIA driver import
|
||||
config=$(cat "$LAPTOP_CONFIG/configuration.nix")
|
||||
config=$(echo "$config" | sed 's/..\/shared\/nvidia/# ..\/shared\/nvidia/')
|
||||
config=$(echo "$config" | sed 's/..\/shared\/prime/# ..\/shared\/prime/')
|
||||
echo "$config" >"$GUEST_CONFIG/configuration.nix"
|
||||
|
||||
variables=$(cat "$LAPTOP_CONFIG/variables.nix")
|
||||
variables=$(echo "$variables" | sed 's/112569860+anotherhadi@users.noreply.github.com/your_email/')
|
||||
variables=$(echo "$variables" | sed 's/hadi/your_username/')
|
||||
variables=$(echo "$variables" | sed 's/Hadi/your_username/')
|
||||
variables=$(echo "$variables" | sed 's/sops = true/sops = false/')
|
||||
variables=$(echo "$variables" | sed 's/nextcloud = true/nextcloud = false/')
|
||||
echo "$variables" >"$GUEST_CONFIG/variables.nix"
|
||||
1
docs/scripts/create_readme.sh
Normal file
1
docs/scripts/create_readme.sh
Normal file
@@ -0,0 +1 @@
|
||||
#!/usr/bin/env bash
|
||||
0
docs/scripts/install.sh
Normal file
0
docs/scripts/install.sh
Normal file
Reference in New Issue
Block a user