This repository has no description
976 B
39 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 clan.core.vars.password-store.secretLocation = "/var/state/secret-vars";
13
14 krebs.build.host = config.krebs.hosts.radio;
15 system.stateVersion = "24.05";
16
17 security.acme = {
18 acceptTerms = true;
19 defaults.email = "acme@lassul.us";
20 };
21
22 krebs.sync-containers3.inContainer = {
23 enable = true;
24 pubkey = builtins.readFile ./facts/radio.sync.pub;
25 };
26
27 clanCore.facts.services.radio-container = {
28 secret."radio.sync.key" = { };
29 public."radio.sync.pub" = { };
30 generator.path = with pkgs; [
31 coreutils
32 openssh
33 ];
34 generator.script = ''
35 ssh-keygen -t ed25519 -N "" -f "$secrets"/radio.sync.key
36 mv "$secrets"/radio.sync.key "$facts"/radio.sync.pub
37 '';
38 };
39}