This repository has no description
881 B
37 lines
1{ config, pkgs, ... }:
2{
3 imports = [
4 ../../configs
5 ../../configs/retiolum.nix
6 ../../configs/syncthing.nix
7 ../../configs/services/radio
8 ../../configs/autoupdate.nix
9 ];
10
11 clan.core.vars.password-store.secretLocation = "/var/state/secret-vars";
12
13 system.stateVersion = "24.05";
14
15 security.acme = {
16 acceptTerms = true;
17 defaults.email = "acme@lassul.us";
18 };
19
20 krebs.sync-containers3.inContainer = {
21 enable = true;
22 pubkey = config.clan.core.vars.generators.radio-sync.files."radio.sync.pub".value;
23 };
24
25 clan.core.vars.generators.radio-sync = {
26 files."radio.sync.key" = { };
27 files."radio.sync.pub".secret = false;
28 runtimeInputs = with pkgs; [
29 coreutils
30 openssh
31 ];
32 script = ''
33 ssh-keygen -t ed25519 -N "" -f "$out"/radio.sync.key
34 mv "$out"/radio.sync.key.pub "$out"/radio.sync.pub
35 '';
36 };
37}