mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-22 01:30:48 +03:00
modules/age: nixpkgs-fmt
This commit is contained in:
parent
ed7e69bff3
commit
9b8f6c01fe
1 changed files with 17 additions and 15 deletions
|
@ -71,7 +71,8 @@ let
|
|||
};
|
||||
};
|
||||
});
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.age = {
|
||||
secrets = mkOption {
|
||||
type = types.attrsOf secretType;
|
||||
|
@ -82,7 +83,8 @@ in {
|
|||
};
|
||||
sshKeyPaths = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = if config.services.openssh.enable then
|
||||
default =
|
||||
if config.services.openssh.enable then
|
||||
map (e: e.path) (lib.filter (e: e.type == "rsa" || e.type == "ed25519") config.services.openssh.hostKeys)
|
||||
else [ ];
|
||||
description = ''
|
||||
|
|
Loading…
Reference in a new issue