Skip to content

Commit 68827be

Browse files
committed
feat: add package option to home-manager module.
1 parent 77c423a commit 68827be

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

modules/home-manager/sops.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
let
99
cfg = config.sops;
10-
sops-install-secrets = (pkgs.callPackage ../.. { }).sops-install-secrets;
10+
sops-install-secrets = cfg.package;
1111
secretType = lib.types.submodule (
1212
{ name, ... }:
1313
{
@@ -230,6 +230,15 @@ in
230230
'';
231231
};
232232

233+
package = lib.mkOption {
234+
type = lib.types.package;
235+
default = (pkgs.callPackage ../.. { }).sops-install-secrets;
236+
defaultText = lib.literalExpression "(pkgs.callPackage ../.. {}).sops-install-secrets";
237+
description = ''
238+
sops-install-secrets package to use.
239+
'';
240+
};
241+
233242
age = {
234243
keyFile = lib.mkOption {
235244
type = lib.types.nullOr pathNotInStore;

0 commit comments

Comments
 (0)