make zowoq an admin

This commit is contained in:
Jörg Thalheim 2022-10-22 09:53:24 +02:00
parent 3eff63e394
commit 18297ff6cd
4 changed files with 21 additions and 6 deletions
README.md
roles/builder
users

View file

@ -56,6 +56,7 @@ As PRs from forks don't have automatic CI checks, admins can test PRs by posting
* @nlewo
* @ryantm
* @zimbatm
* @zowoq
## Services

View file

@ -1 +0,0 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/

View file

@ -43,11 +43,6 @@ let
};
winter.keys = ./keys/winter;
zowoq = {
trusted = true;
keys = ./keys/zowoq;
};
};
ifAttr = key: default: result: opts:

20
users/zowoq.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, pkgs, lib, ... }:
let
userLib = import ./lib.nix { inherit lib; };
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbCYwWByGE46XHH4Q0vZgQ5sOUgbH50M8KO2xhBC4m/"
];
in
{
users.users.zowoq = {
openssh.authorizedKeys.keys = keys;
useDefaultShell = true;
isNormalUser = true;
extraGroups = [
"wheel"
"trusted"
];
uid = userLib.mkUid "zowo";
};
}