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
f79497d9a9
1 changed files with 10 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.sops;
|
cfg = config.sops;
|
||||||
sops-install-secrets = (pkgs.callPackage ../.. { }).sops-install-secrets;
|
sops-install-secrets = cfg.package;
|
||||||
secretType = lib.types.submodule (
|
secretType = lib.types.submodule (
|
||||||
{ name, ... }:
|
{ 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 = {
|
age = {
|
||||||
keyFile = lib.mkOption {
|
keyFile = lib.mkOption {
|
||||||
type = lib.types.nullOr pathNotInStore;
|
type = lib.types.nullOr pathNotInStore;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue