modules/age: nixpkgs-fmt

This commit is contained in:
Cole Helbling 2021-03-01 13:10:52 -08:00
parent ed7e69bff3
commit 9b8f6c01fe
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -71,7 +71,8 @@ let
}; };
}; };
}); });
in { in
{
options.age = { options.age = {
secrets = mkOption { secrets = mkOption {
type = types.attrsOf secretType; type = types.attrsOf secretType;
@ -82,7 +83,8 @@ in {
}; };
sshKeyPaths = mkOption { sshKeyPaths = mkOption {
type = types.listOf types.path; 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) map (e: e.path) (lib.filter (e: e.type == "rsa" || e.type == "ed25519") config.services.openssh.hostKeys)
else [ ]; else [ ];
description = '' description = ''