about summary refs log tree commit diff
path: root/configuration/specimen.nix
blob: 4620e47da6d999f1b4dc6b569e31cbdff5f9799c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, ... }:

{
  age.secrets.name = {
    file = ../secrets/name.age;
    owner = "specimen";
    group = "specimen";
    mode = "440";
  };

  services.specimen = {
    enable = true;

    listenAddress = "0.0.0.0";
    port = 4444;
    openFirewall = true;

    # we pass the entire agenix secret,
    # so we can see both the encrypted and the
    # decrypted path.
    nameSecret = config.age.secrets.name;
  };
}