2023-03-06 23:48:42 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
hmUsers,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
in {
|
|
|
|
config = {
|
|
|
|
security.sudo.extraRules = [
|
|
|
|
{
|
2023-03-07 16:23:34 +00:00
|
|
|
users = ["${psCfg.user.name}"];
|
2023-03-06 23:48:42 +00:00
|
|
|
commands = [
|
|
|
|
{
|
|
|
|
command = "ALL";
|
2023-03-07 16:23:34 +00:00
|
|
|
options = ["NOPASSWD"];
|
2023-03-06 23:48:42 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
pub-solar = {
|
|
|
|
user = {
|
|
|
|
name = "barkeeper";
|
|
|
|
description = "momo deployment user";
|
|
|
|
fullName = "momo infra barkeeper";
|
|
|
|
email = "admins@momo.koeln";
|
|
|
|
gpgKeyId = "";
|
|
|
|
publicKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII/58A18EtxnLYHu63c/+AyTSkJQSso/VVdHUFGp1CTk cardno:FFFE34353135 @hensoko"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAqkqMYgncrnczcW/0PY+Z+FmNXXpgw6D9JWTTwiainy hensoko@hensoko-tp-work"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEbaQdxp7Flz6ttELe63rn+Nt9g43qJOLih6VCMP4gPb @hensoko"
|
2023-03-07 00:10:27 +00:00
|
|
|
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFro/k4Mgqyh8yV/7Zwjc0dv60ZM7bROBU9JNd99P/4co6fxPt1pJiU/pEz2Dax/HODxgcO+jFZfvPEuLMCeAl0= YubiKey #10593996 PIV Slot 9a @teutat3s"
|
2023-03-07 16:23:34 +00:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGP5MvCwNRtCcP1pSDrn0XZTNlpOqYnjHDm9/OI4hECW @ci-drone-runner"
|
2023-03-31 14:38:09 +00:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMNeQYLFauAbzDyIbKC86NUh9yZfiyBm/BtIdkcpZnSU @axeman"
|
2023-03-06 23:48:42 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|