This commit is contained in:
Hadi
2024-06-17 16:33:34 +02:00
committed by GitHub
parent 8b2f8c08d3
commit 3f613c9910
7 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
# for file in ./docs/src/*.png
# optipng $file

View File

@@ -1,8 +1,10 @@
#!/usr/bin/env bash
# This script is used to copy my own configuration to the `./hosts/guest` one, and changing some settings
[[ -d "./hosts" ]] || (
exit 1
echo "Folder ./hosts not found"
exit 1
)
LAPTOP_CONFIG="./hosts/laptop"
@@ -23,4 +25,5 @@ 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/')
variables=$(echo "$variables" | sed 's/obsidian = true/obsidian = false/')
echo "$variables" >"$GUEST_CONFIG/variables.nix"

View File

@@ -1 +1,6 @@
#!/usr/bin/env bash
# check if file exist: ./docs/src/README_template.md
# copy ./docs/src/README_template.md
# replace {md_table_of_content} by the table of content
# place it in ./README.md

View File

@@ -0,0 +1,10 @@
# installation script...
# check if on nixos
# check if ./hosts exist
# check if gum is installed (dependencie)
# save path
# remove .git
# git init and initial commit
# create custom configuration
# save it to ./hosts