From 05fc189ec7643577e926f3ecd369ce6360fc7fa6 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sun, 19 May 2024 11:39:29 -0400 Subject: [PATCH] remove triggers-rebuild as discussed as part of the PR Signed-off-by: ahuston-0 --- modules/autopull.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/autopull.nix b/modules/autopull.nix index f84d17d..bcae5c8 100644 --- a/modules/autopull.nix +++ b/modules/autopull.nix @@ -8,7 +8,6 @@ let cfg = config.services.autopull; - # autopull-type = lib.types.submodule { # autopull-type = with lib.types; attrsOf ( @@ -41,12 +40,6 @@ let default = ""; description = "ssh-key used to pull the repository"; }; - - triggers-rebuild = lib.mkOption { - type = lib.types.bool; - default = false; - description = "Whether or not the rebuild service should be triggered after pulling. Note that system.autoUpgrade must be pointed at the same directory as this service if you'd like to use this option."; - }; }; } ) @@ -78,14 +71,11 @@ in repo-name, ssh-key, path, - triggers-rebuild, ... }: lib.nameValuePair "autopull@${repo-name}" { requires = [ "multi-user.target" ]; - wants = lib.optionals (triggers-rebuild) [ "nixos-service.service" ]; after = [ "multi-user.target" ]; - before = lib.optionals (triggers-rebuild) [ "nixos-upgrade.service" ]; description = "Pull the latest data for ${repo-name}"; environment = lib.mkIf (ssh-key != "") { GIT_SSH_COMMAND = "${pkgs.openssh}/bin/ssh -i ${ssh-key} -o IdentitiesOnly=yes";