add packages, renpy, jellyfin-desktop, rm script

This commit is contained in:
2026-04-13 13:18:51 -04:00
parent cb984df47c
commit c4a7aec364
4 changed files with 13 additions and 43 deletions
+7
View File
@@ -0,0 +1,7 @@
{
"recommendations": [
"paisleysoftworks.renpywarp",
"luquedaniel.languague-renpy",
"jnoortheen.nix-ide"
]
}
+4
View File
@@ -18,6 +18,10 @@
"flakes"
];
nixpkgs.config.permittedInsecurePackages = [
"python3.12-ecdsa-0.19.1" # I'm sure this is fine (just don't use python for anything important like usual)
];
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
+2
View File
@@ -33,6 +33,8 @@
usbutils
python313Packages.nomadnet
screen
jellyfin-desktop
renpy
];
};
-43
View File
@@ -1,43 +0,0 @@
#!/usr/bin/env bash
SESSION_NAMES=("radarr" "sonarr")
LOGFILE="${HOME}/screen_sessions.log"
# Map window names to commands (commands run as shells; use full paths or quotes if needed)
declare -A CMD_FOR_SESSION=(
[radarr]='sudo rclone move --config /etc/rclone.conf -P /mnt/tmpMedia/radarr data:enc/mnt/mega/app_data/complete_torrent_downloads'
[sonarr]='sudo rclone move --config /etc/rclone.conf -P /mnt/tmpMedia/sonarr data:enc/mnt/mega/app_data/complete_torrent_downloads'
)
timestamp(){ date --iso-8601=seconds; }
session_exists(){
local name="$1"
# screen -ls output contains lines like "1234.name"
screen -ls 2>/dev/null | awk '{print $1}' | grep -Eq "\.${name}(\s|$)"
}
ensure_session(){
local name="$1"
local cmd="$2"
if session_exists "$name"; then
echo "$(timestamp) - Session '$name' already exists." >>"$LOGFILE"
return 0
fi
# Start detached session named $name and run the command in its primary window
# Use -S name -d -m to start detached, then run a shell to evaluate the command
screen -S "$name" -d -m bash -lc "$cmd"
if [ $? -eq 0 ]; then
echo "$(timestamp) - Created session '$name' with command: $cmd" >>"$LOGFILE"
else
echo "$(timestamp) - FAILED to create session '$name' (command: $cmd)" >>"$LOGFILE"
return 1
fi
}
for name in "${SESSION_NAMES[@]}"; do
cmd="${CMD_FOR_SESSION[$name]:-bash}" # default to interactive bash if no command provided
ensure_session "$name" "$cmd"
done