feat(users): define authorized SSH keys
This commit is contained in:
parent
240771af14
commit
35368fc6f9
2 changed files with 10 additions and 5 deletions
|
|
@ -8,6 +8,7 @@
|
|||
- `extraGroups`: groups (optionally)
|
||||
- `shell`: User's shell
|
||||
- `session`: User's default graphical session (optionally)
|
||||
- `sshKeys`: User's authorized SSH keys (optionally)
|
||||
|
||||
Session must have format of "{type}:{session}" where type is one of `co` (short for "compositor") and `de` (short for "desktop environment").
|
||||
This `type` is actually important, because it depends where nix will search corresponding option for enabling your session.
|
||||
|
|
@ -64,6 +65,7 @@ lib.foldl' (acc: obj: lib.recursiveUpdate acc obj) { } (
|
|||
isNormalUser = true;
|
||||
shell = pkgs."${cfg.shell}";
|
||||
extraGroups = cfg.extraGroups or [ ];
|
||||
openssh.authorizedKeys.keys = cfg.sshKeys or [ ];
|
||||
};
|
||||
}) cfg.usersList)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue