nixos-config/configurations/host/materusPC/secrets/default.nix

28 lines
542 B
Nix
Raw Normal View History

2024-03-02 22:36:43 +01:00
{ config, pkgs, lib, ... }:
{
imports =
[
];
sops.age.keyFile = "/materus/root/age.key";
sops.age.generateKey = false;
sops.gnupg.home = null;
sops.gnupg.sshKeyPaths = [];
sops.secrets.users.materus = {
format = "json";
sopsFile = ./users.json;
};
services.openssh.hostKeys = [
{
bits = 4096;
path = "/materus/root/ssh_host_rsa_key";
type = "rsa";
}
{
path = "/materus/root/ssh_host_ed25519_key";
type = "ed25519";
}
];
}