Skip to content

Commit

Permalink
Add hydra user
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Rautiola <[email protected]>
  • Loading branch information
joinemm committed Nov 8, 2023
1 parent 9d1555a commit eed2592
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
11 changes: 9 additions & 2 deletions hosts/binarycache/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@
../../services/nginx/nginx.nix
../../users/jrautiola.nix
../../users/cazfi.nix
../../users/hydra.nix
];

nix.settings.substituters = [];
nix.settings = {
# we don't want the cache to be a substitutor for itself
substituters = [];
trusted-users = ["hydra"];
};

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
services.openssh.enable = true;
Expand All @@ -40,14 +45,16 @@
nameservers = ["1.1.1.1" "8.8.8.8"];
};

# acme gets https certificates when we have dns
# security.acme = {
# acceptTerms = true;
# defaults.email = "[email protected]";
# };

services.nginx = {
virtualHosts = {
"cache.vedenemo.dev" = {
# "cache.vedenemo.dev" = {
"_" = {
# enableACME = true;
# forceSSL = true;
default = true;
Expand Down
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class TargetHost:
{
"build01-dev": TargetHost(hostname="51.12.57.124", nixosconfig="build01"),
"ghafhydra-dev": TargetHost(hostname="51.12.56.79", nixosconfig="ghafhydra"),
"binarycache": TargetHost(hostname="172.18.20.109", nixosconfig="binarycache"),
}
)

Expand Down
14 changes: 14 additions & 0 deletions users/hydra.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
{...}: {
users.users = {
hydra = {
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbycq53k6oz1VvTC8I7wYt1c5t2YGYd41MJUeakte5t hydra@build4"
];
extraGroups = [];
};
};
}

0 comments on commit eed2592

Please sign in to comment.