feat: init
19
profiles/user0/files/get_weather.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for i in {1..5}
|
||||
do
|
||||
text=$(curl -s "https://wttr.in/$1?format=1")
|
||||
if [[ $? == 0 ]]
|
||||
then
|
||||
text=$(echo "$text" | sed -E "s/\s+/ /g")
|
||||
tooltip=$(curl -s "https://wttr.in/$1?format=4")
|
||||
if [[ $? == 0 ]]
|
||||
then
|
||||
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
|
||||
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"
|
27
profiles/user0/files/list.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Function to list directories recursively and sort them alphabetically
|
||||
list_directories() {
|
||||
local parent_dir=$1
|
||||
local output_file=$2
|
||||
|
||||
# Clear the output file if it exists
|
||||
> "$output_file"
|
||||
|
||||
# Recursively find and list directories, then sort them and write to the output file
|
||||
while IFS= read -r dir; do
|
||||
echo "$dir" >> "$output_file"
|
||||
done < <(find "$parent_dir" -type d | sort)
|
||||
}
|
||||
|
||||
# Main script execution
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 parent_directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
parent_directory=$1
|
||||
output_file="nested_directories.txt"
|
||||
|
||||
list_directories "$parent_directory" "$output_file"
|
||||
echo "Directory paths have been written to $output_file"
|
3
profiles/user0/files/loop.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
while true ; do date ; natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done
|
9
profiles/user0/files/modnix.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cp /etc/nixos/configuration.nix /etc/nixos/configuration.nix.backup
|
||||
|
||||
sed -i '/services\.printing\.enable = true;/a\ nix.settings.experimental-features = ["nix-command" "flakes"];\n services.openssh.enable = true;' /etc/nixos/configuration.nix
|
||||
sed -i '/thunderbird/a\ git\n vscode\n tomb' /etc/nixos/configuration.nix
|
||||
swapoff -a
|
||||
|
||||
echo "/etc/nixos/configuration.nix updated successfully."
|
11
profiles/user0/files/reinstall.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p /var/lib/sops-nix
|
||||
mkdir -p /home/nick/.config/sops/age
|
||||
|
||||
cp /run/media/nick/crypt/key.txt /home/nick/.config/sops/age/keys.txt
|
||||
cp /run/media/nick/crypt/key.txt /var/lib/sops-nix/key.txt
|
||||
|
||||
swapon -a
|
||||
|
||||
echo "SOPS keys transferred successfully."
|
BIN
profiles/user0/files/themes/qbittorrent/macchiato.qbtheme
Executable file
1
profiles/user0/files/themes/vesktop/macchiato-theme.css
Executable file
|
@ -0,0 +1 @@
|
|||
@import url("https://catppuccin.github.io/discord/dist/catppuccin-macchiato.theme.css");
|
BIN
profiles/user0/files/wallpaper/7yKtaRij2giAj0s09F6gmB8XIje.jpg
Executable file
After Width: | Height: | Size: 772 KiB |
BIN
profiles/user0/files/wallpaper/FTDCMyaXoAEUn5h.jpg
Executable file
After Width: | Height: | Size: 578 KiB |
BIN
profiles/user0/files/wallpaper/cat-waves.png
Executable file
After Width: | Height: | Size: 1.2 MiB |
BIN
profiles/user0/files/wallpaper/juliemao-1741428128332-6023.jpg
Executable file
After Width: | Height: | Size: 886 KiB |
BIN
profiles/user0/files/wallpaper/pinksky.png
Executable file
After Width: | Height: | Size: 201 KiB |
BIN
profiles/user0/files/wallpaper/u6ne2q214dx71.jpg
Executable file
After Width: | Height: | Size: 808 KiB |
BIN
profiles/user0/files/wallpaper/wallhaven-0wj757.jpg
Executable file
After Width: | Height: | Size: 578 KiB |
BIN
profiles/user0/files/wallpaper/wallhaven-2ege2g.jpg
Executable file
After Width: | Height: | Size: 1.7 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-4dj2qo.png
Executable file
After Width: | Height: | Size: 3.3 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-4xq6vv.png
Executable file
After Width: | Height: | Size: 5.1 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-5dyvy3.jpg
Executable file
After Width: | Height: | Size: 1.2 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-735xv3.jpg
Executable file
After Width: | Height: | Size: 3.5 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-8xe25y.jpg
Executable file
After Width: | Height: | Size: 632 KiB |
BIN
profiles/user0/files/wallpaper/wallhaven-eyrj7o.jpg
Executable file
After Width: | Height: | Size: 460 KiB |
BIN
profiles/user0/files/wallpaper/wallhaven-g8ky73.jpg
Executable file
After Width: | Height: | Size: 8.2 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-j8wzvp.jpg
Executable file
After Width: | Height: | Size: 1.1 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-nekxjk.png
Executable file
After Width: | Height: | Size: 3.3 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-nryz87.jpg
Executable file
After Width: | Height: | Size: 833 KiB |
BIN
profiles/user0/files/wallpaper/wallhaven-r7yey1.jpg
Executable file
After Width: | Height: | Size: 467 KiB |
BIN
profiles/user0/files/wallpaper/wallhaven-vge32m.jpg
Executable file
After Width: | Height: | Size: 2 MiB |
BIN
profiles/user0/files/wallpaper/wallhaven-vgxgem.jpg
Executable file
After Width: | Height: | Size: 1.8 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (1).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (10).jpg
Executable file
After Width: | Height: | Size: 257 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (11).jpg
Executable file
After Width: | Height: | Size: 261 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (12).jpg
Executable file
After Width: | Height: | Size: 144 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (13).jpg
Executable file
After Width: | Height: | Size: 501 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (14).jpg
Executable file
After Width: | Height: | Size: 252 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (15).jpg
Executable file
After Width: | Height: | Size: 646 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (16).jpg
Executable file
After Width: | Height: | Size: 422 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (17).jpg
Executable file
After Width: | Height: | Size: 552 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (19).jpg
Executable file
After Width: | Height: | Size: 366 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (2).jpg
Executable file
After Width: | Height: | Size: 1.2 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (20).jpg
Executable file
After Width: | Height: | Size: 747 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (21).jpg
Executable file
After Width: | Height: | Size: 1.3 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (22).jpg
Executable file
After Width: | Height: | Size: 1.7 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (23).jpg
Executable file
After Width: | Height: | Size: 665 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (24).jpg
Executable file
After Width: | Height: | Size: 1.8 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (26).jpg
Executable file
After Width: | Height: | Size: 869 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (27).jpg
Executable file
After Width: | Height: | Size: 302 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (28).jpg
Executable file
After Width: | Height: | Size: 457 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (29).jpg
Executable file
After Width: | Height: | Size: 876 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (3).jpg
Executable file
After Width: | Height: | Size: 529 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (30).jpg
Executable file
After Width: | Height: | Size: 258 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (31).jpg
Executable file
After Width: | Height: | Size: 568 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (32).jpg
Executable file
After Width: | Height: | Size: 323 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (34).jpg
Executable file
After Width: | Height: | Size: 720 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (35).jpg
Executable file
After Width: | Height: | Size: 185 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (37).jpg
Executable file
After Width: | Height: | Size: 289 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (38).jpg
Executable file
After Width: | Height: | Size: 405 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (4).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (5).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (6).jpg
Executable file
After Width: | Height: | Size: 1.6 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (7).jpg
Executable file
After Width: | Height: | Size: 4.1 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (8).jpg
Executable file
After Width: | Height: | Size: 787 KiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper (9).jpg
Executable file
After Width: | Height: | Size: 1.3 MiB |
BIN
profiles/user0/files/wallpaper/wallpaperflare.com_wallpaper.jpg
Executable file
After Width: | Height: | Size: 1.7 MiB |