-
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: Joonas Rautiola <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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; | ||
|
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,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 = []; | ||
}; | ||
}; | ||
} |