about summary refs log tree commit diff
path: root/configuration/specimen.nix
blob: 9e994ef7c9d82829ae527ed6726e22632ab67fe0 (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;
  };
}