From 473cc2757c42bd5b5cc3a455e1493314d9deb9c3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 2 Oct 2025 07:49:02 +0100 Subject: [PATCH] Move `~/Code` to `~/Repos` Signed-off-by: Oliver Davies --- hosts/common/home.nix | 2 +- hosts/t480/cron.nix | 2 +- modules/scripts/tmux-sessionizer/package.nix | 4 ++-- packages/update-all-git-repos.nix | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 1f67d1e1..f0a3ccf1 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -90,7 +90,7 @@ in enable = true; extraConfig = { - XDG_REPOS_DIR = "${config.home.homeDirectory}/Code"; + XDG_REPOS_DIR = "${config.home.homeDirectory}/Repos"; }; }; }; diff --git a/hosts/t480/cron.nix b/hosts/t480/cron.nix index 9d7b0e53..27b9e811 100644 --- a/hosts/t480/cron.nix +++ b/hosts/t480/cron.nix @@ -5,7 +5,7 @@ enable = true; systemCronJobs = [ - "*/15 * * * * opdavies ${pkgs.imapfilter}/bin/imapfilter -c ~/Code/personal/email-filters/config.lua" + "*/15 * * * * opdavies ${pkgs.imapfilter}/bin/imapfilter -c ~/Repos/code.oliverdavies.uk/opdavies/email-filters/config.lua" "0 8,20 * * * opdavies ${pkgs.isync}/bin/mbsync -a" ]; }; diff --git a/modules/scripts/tmux-sessionizer/package.nix b/modules/scripts/tmux-sessionizer/package.nix index 7c0cfb9c..e33b99a6 100644 --- a/modules/scripts/tmux-sessionizer/package.nix +++ b/modules/scripts/tmux-sessionizer/package.nix @@ -49,8 +49,8 @@ selected=$1 else items=$( - find "$HOME/Code" -maxdepth 3 -mindepth 1 -type d - find "$HOME/Documents" -maxdepth 1 -mindepth 1 -type d + find "$XDG_REPOS_DIR" -maxdepth 3 -mindepth 1 -type d + find "$XDG_DOCUMENTS_DIR" -maxdepth 1 -mindepth 1 -type d find "$HOME/tmp" -maxdepth 1 -type d ) diff --git a/packages/update-all-git-repos.nix b/packages/update-all-git-repos.nix index 1ef76bf2..9e55f35c 100755 --- a/packages/update-all-git-repos.nix +++ b/packages/update-all-git-repos.nix @@ -9,7 +9,7 @@ pkgs.writeShellApplication { ]; text = '' - # Update all top-level Git repository clones within my Code directories to their + # Update all top-level Git repository clones within my code directories to their # latest version. dirs=$(find "$XDG_REPOS_DIR" -mindepth 2 -maxdepth 3 -type d -name .git -not -path '*/*.old/*')