From c4a7aec36440cd1409f4bb06a62a959d48922c22 Mon Sep 17 00:00:00 2001 From: quinm0 Date: Mon, 13 Apr 2026 13:18:51 -0400 Subject: [PATCH] add packages, renpy, jellyfin-desktop, rm script --- .vscode/extensions.json | 7 +++++++ modules/common.nix | 4 ++++ modules/user-quin.nix | 2 ++ start-torrent-uploads.sh | 43 ---------------------------------------- 4 files changed, 13 insertions(+), 43 deletions(-) create mode 100644 .vscode/extensions.json delete mode 100755 start-torrent-uploads.sh diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..c6cc40d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "paisleysoftworks.renpywarp", + "luquedaniel.languague-renpy", + "jnoortheen.nix-ide" + ] +} \ No newline at end of file diff --git a/modules/common.nix b/modules/common.nix index 185e025..2a7d4c4 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -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"; diff --git a/modules/user-quin.nix b/modules/user-quin.nix index 99cfc55..7931534 100644 --- a/modules/user-quin.nix +++ b/modules/user-quin.nix @@ -33,6 +33,8 @@ usbutils python313Packages.nomadnet screen + jellyfin-desktop + renpy ]; }; diff --git a/start-torrent-uploads.sh b/start-torrent-uploads.sh deleted file mode 100755 index 7cb64d2..0000000 --- a/start-torrent-uploads.sh +++ /dev/null @@ -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 \ No newline at end of file