test and dev wrappers

This commit is contained in:
John Lancaster
2026-04-20 22:38:31 -05:00
parent 43ae292f39
commit 3fc3beb4ed
4 changed files with 112 additions and 65 deletions
+16 -15
View File
@@ -42,6 +42,14 @@ in
}).wrapper;
in
{
# Option definitions for the sops home-manager module:
# https://github.com/Mic92/sops-nix/blob/master/modules/home-manager/sops.nix
sops = {
defaultSopsFile = ../../keys/secrets.yaml;
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "${config.ssh.identityFile}" ];
};
home.packages = with pkgs; [
my-sops
(inputs.wrappers.lib.wrapPackage {
@@ -53,21 +61,14 @@ in
"${config.xdg.configHome}/sops-nix/secrets"
];
})
(inputs.wrappers.lib.wrapPackage {
binName = "edit-secrets";
inherit pkgs;
package = my-sops;
args = [ cfg.hostSecretFile ];
})
];
# Option definitions for the sops home-manager module:
# https://github.com/Mic92/sops-nix/blob/master/modules/home-manager/sops.nix
sops = {
defaultSopsFile = ../../keys/secrets.yaml;
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "${config.ssh.identityFile}" ];
};
]
++ lib.optional (cfg.hostSecretFile != null) (inputs.wrappers.lib.wrapPackage {
binName = "edit-secrets";
inherit pkgs;
package = my-sops;
args = [ cfg.hostSecretFile ];
});
};
};