mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 11:02:13 +02:00
ensuring the modules can be run as standalone scripts
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_system_is_updated &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_system_is_updated &&
|
||||||
ensure_package_is_installed git &&
|
ensure_package_is_installed git &&
|
||||||
ensure_package_is_installed github-cli &&
|
ensure_package_is_installed github-cli &&
|
||||||
ensure_git_configuration_set "user.name" &&
|
ensure_git_configuration_set "user.name" &&
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_git_configuration_set "user.name" &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_git_configuration_set "user.name" &&
|
||||||
ensure_git_configuration_set "user.email" &&
|
ensure_git_configuration_set "user.email" &&
|
||||||
ensure_git_configuration_set "init.defaultbranch" &&
|
ensure_git_configuration_set "init.defaultbranch" &&
|
||||||
ensure_ssh_key_installed &&
|
ensure_ssh_key_installed &&
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed docker &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed docker &&
|
||||||
ensure_package_is_installed docker-compose &&
|
ensure_package_is_installed docker-compose &&
|
||||||
ensure_package_is_installed lazydocker &&
|
ensure_package_is_installed lazydocker &&
|
||||||
ensure_group_is_installed docker &&
|
ensure_group_is_installed docker &&
|
||||||
ensure_service_active docker
|
ensure_service_active docker
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed nvim &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed nvim &&
|
||||||
ensure_package_is_installed lazygit &&
|
ensure_package_is_installed lazygit &&
|
||||||
synchronize_user_folder ./sources/nvim/ ~/.config/nvim &&
|
synchronize_user_folder ./sources/nvim/ ~/.config/nvim &&
|
||||||
synchronize_root_folder ./sources/nvim /root/.config/nvim
|
synchronize_root_folder ./sources/nvim /root/.config/nvim
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed fish &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed fish &&
|
||||||
ensure_package_is_installed eza &&
|
ensure_package_is_installed eza &&
|
||||||
ensure_package_is_installed bat &&
|
ensure_package_is_installed bat &&
|
||||||
ensure_package_is_installed fastfetch &&
|
ensure_package_is_installed fastfetch &&
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed ttf-jetbrains-mono-nerd &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed ttf-jetbrains-mono-nerd &&
|
||||||
ensure_package_is_installed noto-fonts &&
|
ensure_package_is_installed noto-fonts &&
|
||||||
ensure_package_is_installed noto-fonts-emoji &&
|
ensure_package_is_installed noto-fonts-emoji &&
|
||||||
ensure_package_is_installed noto-fonts-cjk &&
|
ensure_package_is_installed noto-fonts-cjk &&
|
||||||
ensure_package_is_installed noto-fonts-ar &&
|
ensure_package_is_installed noto-fonts-ar &&
|
||||||
synchronize_user_folder ./sources/fontconfig ~/.config &&
|
synchronize_user_folder ./sources/fontconfig ~/.config &&
|
||||||
synchronize_root_folder ./sources/fontconfig /root/.config
|
synchronize_root_folder ./sources/fontconfig /root/.config
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_service_active acpid
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_service_active acpid
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_group_is_installed gnome &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_group_is_installed gnome &&
|
||||||
ensure_package_group_is_installed gnome-extra &&
|
ensure_package_group_is_installed gnome-extra &&
|
||||||
ensure_package_is_installed python-psutil &&
|
ensure_package_is_installed python-psutil &&
|
||||||
ensure_service_active gdm &&
|
ensure_service_active gdm &&
|
||||||
ensure_gnome_setting_set "org.gnome.desktop.input-sources" "xkb-options" "['compose:ralt']"
|
ensure_gnome_setting_set "org.gnome.desktop.input-sources" "xkb-options" "['compose:ralt']"
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed kitty &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed kitty &&
|
||||||
ensure_package_is_installed viu &&
|
ensure_package_is_installed viu &&
|
||||||
ensure_package_is_installed ueberzugpp &&
|
ensure_package_is_installed ueberzugpp &&
|
||||||
ensure_package_is_installed otf-operator-lig-mono &&
|
ensure_package_is_installed otf-operator-lig-mono &&
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed tmux &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed tmux &&
|
||||||
ensure_git_folder_installed_for_user tmux-plugins/tpm ~/.tmux/plugins/tpm &&
|
ensure_git_folder_installed_for_user tmux-plugins/tpm ~/.tmux/plugins/tpm &&
|
||||||
ensure_git_folder_installed_for_root tmux-plugins/tpm /root/.tmux/plugins/tpm &&
|
ensure_git_folder_installed_for_root tmux-plugins/tpm /root/.tmux/plugins/tpm &&
|
||||||
synchronize_user_folder ./sources/tmux/.tmux.conf ~/ &&
|
synchronize_user_folder ./sources/tmux/.tmux.conf ~/ &&
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed syncthing &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed syncthing &&
|
||||||
ensure_user_folder_present ~/.config/systemd/user &&
|
ensure_user_folder_present ~/.config/systemd/user &&
|
||||||
synchronize_user_folder ./sources/syncthing/syncthing.service ~/.config/systemd/user &&
|
synchronize_user_folder ./sources/syncthing/syncthing.service ~/.config/systemd/user &&
|
||||||
ensure_user_service_active syncthing
|
ensure_user_service_active syncthing
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ensure_package_is_installed yazi &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed yazi &&
|
||||||
ensure_package_is_installed ffmpeg &&
|
ensure_package_is_installed ffmpeg &&
|
||||||
ensure_package_is_installed 7zip &&
|
ensure_package_is_installed 7zip &&
|
||||||
ensure_package_is_installed jq &&
|
ensure_package_is_installed jq &&
|
||||||
|
|||||||
+2
-1
@@ -1 +1,2 @@
|
|||||||
ensure_package_is_installed rustup
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed rustup
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ensure_package_is_installed steam &&
|
source ./modules/00-library.sh &&
|
||||||
|
ensure_package_is_installed steam &&
|
||||||
ensure_package_is_installed bluez &&
|
ensure_package_is_installed bluez &&
|
||||||
ensure_package_is_installed bluez-utils &&
|
ensure_package_is_installed bluez-utils &&
|
||||||
ensure_package_is_installed xone-dkms
|
ensure_package_is_installed xone-dkms
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
sudo sed -i "s/^#\?DNS=.*/DNS=157.90.170.95#dns.nairi.cloud/" /etc/systemd/resolved.conf &&
|
source ./modules/00-library.sh &&
|
||||||
|
sudo sed -i "s/^#\?DNS=.*/DNS=157.90.170.95#dns.nairi.cloud/" /etc/systemd/resolved.conf &&
|
||||||
sudo sed -i "s/^#\?DNSOverTLS=.*/DNSOverTLS=yes/" /etc/systemd/resolved.conf &&
|
sudo sed -i "s/^#\?DNSOverTLS=.*/DNSOverTLS=yes/" /etc/systemd/resolved.conf &&
|
||||||
ensure_service_active systemd-resolved
|
ensure_service_active systemd-resolved
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
source ./modules/00-library.sh &&
|
source ./modules/00-library.sh &&
|
||||||
ensure_package_is_installed opencode &&
|
ensure_package_is_installed opencode &&
|
||||||
synchronize_user_folder sources/opencode ~/.config
|
synchronize_user_folder sources/opencode ~/.config
|
||||||
|
|||||||
Reference in New Issue
Block a user