From 265cb309fd71236dd10009799b022dbf053230bc Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 9 Aug 2024 15:21:34 +0200 Subject: [PATCH] home/git: move maintenance timers to git dir, add nixpkgs to scalar --- home/home.nix | 1 - home/programs/git/default.nix | 8 ++++++++ .../git/maintenance-timers.nix} | 0 3 files changed, 8 insertions(+), 1 deletion(-) rename home/{services/git-maintenance.nix => programs/git/maintenance-timers.nix} (100%) diff --git a/home/home.nix b/home/home.nix index c07d23f..5936541 100644 --- a/home/home.nix +++ b/home/home.nix @@ -23,7 +23,6 @@ in { ./programs/tmux.nix ./programs/zsh - ./services/git-maintenance.nix ./services/nix-channel-update.nix ./services/pueue.nix diff --git a/home/programs/git/default.nix b/home/programs/git/default.nix index 03733cd..f376992 100644 --- a/home/programs/git/default.nix +++ b/home/programs/git/default.nix @@ -14,6 +14,10 @@ let ]; in { + imports = [ + ./maintenance-timers.nix + ]; + # TODO: convert to template once nix-sops supports it in hm module sops.secrets."git/nordicsemi-config" = { }; @@ -84,6 +88,10 @@ in maintenance.strategy = "incremental"; + scalar = { + repo = [ "${config.home.homeDirectory}/nixpkgs" ]; + }; + transfer.fsckObjects = true; receive.fsckObjects = true; diff --git a/home/services/git-maintenance.nix b/home/programs/git/maintenance-timers.nix similarity index 100% rename from home/services/git-maintenance.nix rename to home/programs/git/maintenance-timers.nix