diff --git a/modules/gnome/home.nix b/modules/gnome/home.nix index 54d690b..ce355da 100644 --- a/modules/gnome/home.nix +++ b/modules/gnome/home.nix @@ -160,9 +160,6 @@ in documents = "${config.home.homeDirectory}/Documents"; download = "${config.home.homeDirectory}/Downloads"; - # Enable Pictures directory - pictures = "${config.home.homeDirectory}/Pictures"; - # Disable unwanted directories music = null; videos = null; diff --git a/modules/login-display.nix b/modules/login-display.nix index b685095..c150d6f 100644 --- a/modules/login-display.nix +++ b/modules/login-display.nix @@ -199,13 +199,13 @@ in # Parse sync status if [[ -n "$SNAPRAID_SYNC_LOG" ]]; then - # Check for completion messages - if echo "$SNAPRAID_SYNC_LOG" | ${pkgs.gnugrep}/bin/grep -q "Everything OK"; then + # Check for completion messages (Everything OK or Nothing to do both indicate success) + if echo "$SNAPRAID_SYNC_LOG" | ${pkgs.gnugrep}/bin/grep -q "Everything OK\|Nothing to do"; then SYNC_STATUS="✓" SYNC_COLOR="\\033[38;2;184;187;38m" - # Get timestamp - SYNC_TIMESTAMP=$(journalctl -u snapraid-sync.service --output=short-iso -n 100 --no-pager 2>/dev/null | ${pkgs.gnugrep}/bin/grep "Everything OK" | tail -1 | ${pkgs.gawk}/bin/awk '{print $1}') + # Get timestamp from the most recent success message + SYNC_TIMESTAMP=$(journalctl -u snapraid-sync.service --output=short-iso -n 100 --no-pager 2>/dev/null | ${pkgs.gnugrep}/bin/grep "Everything OK\|Nothing to do" | tail -1 | ${pkgs.gawk}/bin/awk '{print $1}') if [[ -n "$SYNC_TIMESTAMP" ]]; then SYNC_EPOCH=$(date -d "$SYNC_TIMESTAMP" +%s 2>/dev/null || echo "0") diff --git a/modules/zsh.nix b/modules/zsh.nix index e9d8b1a..46602b0 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -184,8 +184,4 @@ in # Generate projects.json for shell scripts home.file.".config/nix/config/projects.json".text = builtins.toJSON projectsConfig; - - # Ensure Steam screenshots and recordings directories exist - home.file."Pictures/Steam/.gitkeep".text = ""; - home.file."Pictures/Steam/recordings/.gitkeep".text = ""; }