From f7e369e936b384b37a1bc9c4fc80b28609b24ecd Mon Sep 17 00:00:00 2001 From: David Guibert Date: Mon, 15 Jan 2024 22:32:41 +0100 Subject: [PATCH] made sops-install-secrets deployable on build node Based on https://github.com/nix-community/home-manager/pull/4907. --- modules/home-manager/sops.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index a063bc61..150f593a 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -2,7 +2,8 @@ let cfg = config.sops; - sops-install-secrets = (pkgs.callPackage ../.. {}).sops-install-secrets; + activationPackageSet = config.home.activationPackageSet or pkgs; + sops-install-secrets = (activationPackageSet.callPackage ../.. {}).sops-install-secrets; secretType = lib.types.submodule ({ config, name, ... }: { options = { name = lib.mkOption {