From 3f613c9910bfdddb7fbaa8cc813cf95186501f0c Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 17 Jun 2024 16:33:34 +0200 Subject: [PATCH] temp --- docs/scripts/compress_src_png.sh | 2 ++ docs/scripts/create_guest_config.sh | 5 ++++- docs/scripts/create_readme.sh | 5 +++++ docs/scripts/install.sh | 10 ++++++++++ docs/todo.md | 0 home/programs/nvim/laptop.nix | 2 +- hosts/laptop/variables.nix | 3 ++- 7 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 docs/scripts/compress_src_png.sh create mode 100644 docs/todo.md diff --git a/docs/scripts/compress_src_png.sh b/docs/scripts/compress_src_png.sh new file mode 100644 index 0000000..cf50eeb --- /dev/null +++ b/docs/scripts/compress_src_png.sh @@ -0,0 +1,2 @@ +# for file in ./docs/src/*.png +# optipng $file \ No newline at end of file diff --git a/docs/scripts/create_guest_config.sh b/docs/scripts/create_guest_config.sh index ce2afcb..362d896 100644 --- a/docs/scripts/create_guest_config.sh +++ b/docs/scripts/create_guest_config.sh @@ -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" diff --git a/docs/scripts/create_readme.sh b/docs/scripts/create_readme.sh index f1f641a..44c0b3e 100644 --- a/docs/scripts/create_readme.sh +++ b/docs/scripts/create_readme.sh @@ -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 \ No newline at end of file diff --git a/docs/scripts/install.sh b/docs/scripts/install.sh index e69de29..764b6f3 100644 --- a/docs/scripts/install.sh +++ b/docs/scripts/install.sh @@ -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 \ No newline at end of file diff --git a/docs/todo.md b/docs/todo.md new file mode 100644 index 0000000..e69de29 diff --git a/home/programs/nvim/laptop.nix b/home/programs/nvim/laptop.nix index edc6363..ed6da64 100644 --- a/home/programs/nvim/laptop.nix +++ b/home/programs/nvim/laptop.nix @@ -16,7 +16,7 @@ ./treesitter.nix ./toggleterm.nix ./copilot.nix - ./obsidian.nix + ./obsidian.nix # make conditional ./whichkey.nix ./alpha.nix ./keymaps.nix diff --git a/hosts/laptop/variables.nix b/hosts/laptop/variables.nix index ec12e30..eb7e94c 100644 --- a/hosts/laptop/variables.nix +++ b/hosts/laptop/variables.nix @@ -21,8 +21,9 @@ autoUpgrade = false; autoGarbageCollector = false; - sops = true; + sops = true; # change the sops configuration if you want to enable that nextcloud = true; + obsidian = true; # change the nvim's obsidian configuration if you want to enable that theme = import ../themes/nixy.nix; };