aboutsummaryrefslogtreecommitdiffstats
path: root/apps/static-users
diff options
context:
space:
mode:
Diffstat (limited to 'apps/static-users')
-rw-r--r--apps/static-users/appspec.nix6
-rw-r--r--apps/static-users/capabilities.nix4
2 files changed, 4 insertions, 6 deletions
diff --git a/apps/static-users/appspec.nix b/apps/static-users/appspec.nix
index cb55ea7..92ec8ba 100644
--- a/apps/static-users/appspec.nix
+++ b/apps/static-users/appspec.nix
@@ -7,9 +7,9 @@
type = lib.types.nullOr lib.types.str;
default = "system-secrets/${appConfig.appId}/${appConfig.users.${name}.username}.password";
};
- options.publicKeyFile = lib.mkOption {
- type = lib.types.nullOr lib.types.path;
- default = null;
+ options.publicKeyFiles = lib.mkOption {
+ type = lib.types.listOf lib.types.path;
+ default = [ ];
};
options.username = lib.mkOption {
type = lib.types.str;
diff --git a/apps/static-users/capabilities.nix b/apps/static-users/capabilities.nix
index 1861888..33679ad 100644
--- a/apps/static-users/capabilities.nix
+++ b/apps/static-users/capabilities.nix
@@ -7,8 +7,6 @@
# TODO appConfig should come from config to have been fully evaluated
config.fysiweb-apps.${appConfig.owner}.${appConfig.appName}.${appConfig.appInstanceName}.users;
ssh-credentials = lib.concatMapAttrs
- (name: attrs: lib.optionalAttrs (attrs.publicKeyFile != null) {
- ${name} = { inherit (attrs) publicKeyFile; };
- })
+ (name: attrs: { ${name} = { inherit (attrs) publicKeyFiles; }; })
appConfig.users;
}