mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
feat: add package option to home-manager module.
This commit is contained in:
parent
932e54d6ce
commit
04059a5b94
1 changed files with 10 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
let
|
||||
cfg = config.sops;
|
||||
sops-install-secrets = (pkgs.callPackage ../.. { }).sops-install-secrets;
|
||||
sops-install-secrets = cfg.package;
|
||||
secretType = lib.types.submodule (
|
||||
{ name, ... }:
|
||||
{
|
||||
|
|
@ -230,6 +230,15 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = (pkgs.callPackage ../.. { }).sops-install-secrets;
|
||||
defaultText = lib.literalExpression "(pkgs.callPackage ../.. {}).sops-install-secrets";
|
||||
description = ''
|
||||
sops-install-secrets package to use.
|
||||
'';
|
||||
};
|
||||
|
||||
age = {
|
||||
keyFile = lib.mkOption {
|
||||
type = lib.types.nullOr pathNotInStore;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue