add packages, renpy, jellyfin-desktop, rm script
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"paisleysoftworks.renpywarp",
|
||||||
|
"luquedaniel.languague-renpy",
|
||||||
|
"jnoortheen.nix-ide"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -18,6 +18,10 @@
|
|||||||
"flakes"
|
"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 = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
|
|||||||
@@ -33,6 +33,8 @@
|
|||||||
usbutils
|
usbutils
|
||||||
python313Packages.nomadnet
|
python313Packages.nomadnet
|
||||||
screen
|
screen
|
||||||
|
jellyfin-desktop
|
||||||
|
renpy
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user