aboutsummaryrefslogtreecommitdiff
path: root/modules/secrets/nixos/default.nix
blob: e5e66629b300d44c8821eacb22865924442b757d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  inputs,
  config,
  ...
}: let
  cfg = config.collinux.secrets;
in {
  imports = [
    inputs.agenix.nixosModules.default
  ];

  age = {
    identityPaths = ["/etc/ssh/ssh_host_ed25519_key"];
    secretsDir = "/run/secrets.d";
    secrets = cfg;
  };
}