mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-10 11:01:07 +01:00
programs/ssh: use 'toList'
This commit is contained in:
parent
28741978a3
commit
12e7786854
1 changed files with 3 additions and 24 deletions
|
|
@ -151,14 +151,7 @@ let
|
||||||
identityFile = mkOption {
|
identityFile = mkOption {
|
||||||
type = with types; either (listOf str) (nullOr str);
|
type = with types; either (listOf str) (nullOr str);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
apply =
|
apply = p: if p == null then [ ] else lib.toList p;
|
||||||
p:
|
|
||||||
if p == null then
|
|
||||||
[ ]
|
|
||||||
else if lib.isString p then
|
|
||||||
[ p ]
|
|
||||||
else
|
|
||||||
p;
|
|
||||||
description = ''
|
description = ''
|
||||||
Specifies files from which the user identity is read.
|
Specifies files from which the user identity is read.
|
||||||
Identities will be tried in the given order.
|
Identities will be tried in the given order.
|
||||||
|
|
@ -168,14 +161,7 @@ let
|
||||||
identityAgent = mkOption {
|
identityAgent = mkOption {
|
||||||
type = with types; either (listOf str) (nullOr str);
|
type = with types; either (listOf str) (nullOr str);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
apply =
|
apply = p: if p == null then [ ] else lib.toList p;
|
||||||
p:
|
|
||||||
if p == null then
|
|
||||||
[ ]
|
|
||||||
else if lib.isString p then
|
|
||||||
[ p ]
|
|
||||||
else
|
|
||||||
p;
|
|
||||||
description = ''
|
description = ''
|
||||||
Specifies the location of the ssh identity agent.
|
Specifies the location of the ssh identity agent.
|
||||||
'';
|
'';
|
||||||
|
|
@ -265,14 +251,7 @@ let
|
||||||
certificateFile = mkOption {
|
certificateFile = mkOption {
|
||||||
type = with types; either (listOf str) (nullOr str);
|
type = with types; either (listOf str) (nullOr str);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
apply =
|
apply = p: if p == null then [ ] else lib.toList p;
|
||||||
p:
|
|
||||||
if p == null then
|
|
||||||
[ ]
|
|
||||||
else if lib.isString p then
|
|
||||||
[ p ]
|
|
||||||
else
|
|
||||||
p;
|
|
||||||
description = ''
|
description = ''
|
||||||
Specifies files from which the user certificate is read.
|
Specifies files from which the user certificate is read.
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue