This repository has no description
1.0 kB
41 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 clan.password-store.targetDirectory = "/var/state/secrets";
14
15 services.nginx.enable = true;
16 networking.firewall.allowedTCPPorts = [
17 80
18 443
19 ];
20 security.acme = {
21 acceptTerms = true;
22 defaults.email = "acme@lassul.us";
23 };
24
25 krebs.sync-containers3.inContainer = {
26 enable = true;
27 pubkey = builtins.readFile ./facts/orange.sync.pub;
28 };
29 clanCore.facts.services.orange-container = {
30 secret."orange.sync.key" = { };
31 public."orange.sync.pub" = { };
32 generator.path = with pkgs; [
33 coreutils
34 openssh
35 ];
36 generator.script = ''
37 ssh-keygen -t ed25519 -N "" -f "$secrets"/orange.sync.key
38 mv "$secrets"/orange.sync.key "$facts"/orange.sync.pub
39 '';
40 };
41}