-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marko Lindqvist <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# SPDX-FileCopyrightText: 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{ lib, ... }: | ||
let | ||
groupName = "gala"; | ||
|
||
# add new uploaders here | ||
uploaders = [ | ||
{ | ||
desc = "Mikko Koivisto"; | ||
name = "mikko_koivisto"; | ||
keys = [ | ||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHx2xDbBcBFRCQ8vtA47UMT4zBasUWxK+1CYOQSrv2BL [email protected]" | ||
]; | ||
} | ||
{ | ||
desc = "Nikita Bazulin"; | ||
name = "nikita.bazulin"; | ||
keys = [ | ||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL/8+QSIlYHTMS6SOTd59WudS76HtZmbnSTSO04icPw1 [email protected]" | ||
]; | ||
} | ||
]; | ||
in | ||
{ | ||
users = { | ||
groups."${groupName}" = { }; | ||
|
||
users = builtins.listToAttrs ( | ||
map ( | ||
{ | ||
desc, | ||
name, | ||
keys, | ||
}: | ||
lib.nameValuePair name { | ||
inherit name; | ||
|
||
description = desc; | ||
openssh.authorizedKeys.keys = keys; | ||
|
||
isNormalUser = true; | ||
extraGroups = [ groupName ]; | ||
} | ||
) uploaders | ||
); | ||
}; | ||
} |