fix: bad age.identityPaths default value on darwin
This commit is contained in:
parent
f6291c5935
commit
cce0ff472c
1 changed files with 2 additions and 2 deletions
|
|
@ -228,7 +228,7 @@ in {
|
|||
identityPaths = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default =
|
||||
if (config.services.openssh.enable or false)
|
||||
if ((config.services.openssh.enable or false) == true && config.services.openssh ? hostKeys)
|
||||
then map (e: e.path) (lib.filter (e: e.type == "rsa" || e.type == "ed25519") config.services.openssh.hostKeys)
|
||||
else if isDarwin
|
||||
then [
|
||||
|
|
@ -237,7 +237,7 @@ in {
|
|||
]
|
||||
else [];
|
||||
defaultText = literalExpression ''
|
||||
if (config.services.openssh.enable or false)
|
||||
if ((config.services.openssh.enable or false) == true && config.services.openssh?hostKeys)
|
||||
then map (e: e.path) (lib.filter (e: e.type == "rsa" || e.type == "ed25519") config.services.openssh.hostKeys)
|
||||
else if isDarwin
|
||||
then [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue