This repository has no description
912 B
34 lines
1{ config, pkgs, ... }:
2{
3 imports = [
4 ../../2configs
5 ../../2configs/retiolum.nix
6 ../../2configs/mumble-reminder.nix
7 ../../2configs/services/git
8 ../../2configs/nginx.nix
9 ];
10
11 krebs.build.host = config.krebs.hosts.orange;
12 system.stateVersion = "24.05";
13
14 services.nginx.enable = true;
15 networking.firewall.allowedTCPPorts = [ 80 443 ];
16 security.acme = {
17 acceptTerms = true;
18 defaults.email = "acme@lassul.us";
19 };
20
21 krebs.sync-containers3.inContainer = {
22 enable = true;
23 pubkey = builtins.readFile ./facts/orange.sync.pub;
24 };
25 clanCore.facts.services.orange-container = {
26 secret."orange.sync.key" = { };
27 public."orange.sync.pub" = { };
28 generator.path = with pkgs; [ coreutils openssh ];
29 generator.script = ''
30 ssh-keygen -t ed25519 -N "" -f "$secrets"/orange.sync.key
31 mv "$secrets"/orange.sync.key "$facts"/orange.sync.pub
32 '';
33 };
34}