servers/machines/lebesgue/config/state.nix

36 lines
811 B
Nix
Raw Normal View History

2026-02-24 00:00:35 -08:00
{ config, ... }:
{
sops.age.sshKeyPaths = [ "/persist/etc/ssh/ssh_host_ed25519_key" ];
2025-02-03 17:19:22 -06:00
environment.persistence."/persist" = {
directories = [
2025-02-06 17:44:13 -06:00
"/var/cache/restic-backups-s3"
2025-12-28 20:49:16 -06:00
"/var/lib/forgejo"
"/var/lib/tailscale"
2025-07-14 00:40:10 -05:00
"/var/lib/goatcounter"
"/var/log"
"/var/lib/nixos"
"/var/lib/docker"
2025-06-04 16:08:13 -05:00
"/var/lib/authelia-main"
"/var/lib/caddy/.local/share/caddy"
"/var/lib/vaultwarden"
2026-02-24 00:00:35 -08:00
{
directory = "/var/lib/lldap";
user = "lldap";
group = "lldap";
mode = "0700";
}
];
2025-02-03 17:19:22 -06:00
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_rsa_key.pub"
"/etc/ssh/ssh_host_rsa_key"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
"/var/lib/systemd/random-seed"
];
};
}