Skip to content

Commit

Permalink
remote x86 hydra builder: add Yubikey provisioning
Browse files Browse the repository at this point in the history
- Environment for Yubikey provisioning (legacy Hydra builds)
- Add Yubikey signer accounts for build3 and build4

Signed-off-by: Marko Kaapu <marko.kaapu@unikie.com>
  • Loading branch information
mkaapu committed Feb 20, 2024
1 parent ee91375 commit e9bd921
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hosts/ficolobuild/build3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@

networking.hostName = "build3";

# Yubikey signer
users.users = {
yubimaster = {
isNormalUser = true;
extraGroups = ["docker"];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMDfEUoARtE5ZMYofegtm3lECzaQeAktLQ2SqlHcV9jL signer"
];
};
};

# Trust Themisto Hydra user
nix.settings = {
trusted-users = ["root" "themisto" "@wheel"];
Expand Down
11 changes: 11 additions & 0 deletions hosts/ficolobuild/build4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@

networking.hostName = "build4";

# Yubikey signer
users.users = {
yubimaster = {
isNormalUser = true;
extraGroups = ["docker"];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2BcpFzSXOuK9AzN+J1HBVnuVV8D3wgdEwPuILNy2aM signer"
];
};
};

# Trust Themisto Hydra user
nix.settings = {
trusted-users = ["root" "themisto"];
Expand Down
7 changes: 7 additions & 0 deletions hosts/ficolobuild/builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{
self,
config,
pkgs,
inputs,
lib,
modulesPath,
Expand Down Expand Up @@ -41,4 +42,10 @@
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

# Environment for Yubikey provisioning
environment.systemPackages = with pkgs; [
usbutils
];
virtualisation.docker.enable = true;
}

0 comments on commit e9bd921

Please sign in to comment.