This repository has no description
901 B
38 lines
1{ config, pkgs, ... }:
2{
3 imports = [
4 ../../2configs
5 ../../2configs/retiolum.nix
6 ../../2configs/syncthing.nix
7 ../../2configs/services/radio
8 ../../2configs/autoupdate.nix
9 ];
10
11 clan.password-store.targetDirectory = "/var/state/secrets";
12
13 krebs.build.host = config.krebs.hosts.radio;
14 system.stateVersion = "24.05";
15
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/radio.sync.pub;
24 };
25
26 clanCore.facts.services.radio-container = {
27 secret."radio.sync.key" = { };
28 public."radio.sync.pub" = { };
29 generator.path = with pkgs; [
30 coreutils
31 openssh
32 ];
33 generator.script = ''
34 ssh-keygen -t ed25519 -N "" -f "$secrets"/radio.sync.key
35 mv "$secrets"/radio.sync.key "$facts"/radio.sync.pub
36 '';
37 };
38}