hm cleanup

This commit is contained in:
iofq 2025-06-02 01:21:31 -05:00
parent 4eedb65822
commit 5d7ab7c414
No known key found for this signature in database
GPG key ID: ECF3B2DA38BF7183
18 changed files with 534 additions and 328 deletions

View file

@ -0,0 +1,30 @@
{config, ...}: {
sops = {
defaultSopsFile = ../../secrets/restic.yaml;
secrets = {
"b2-immich/env" = {};
"b2-immich/repo" = {};
"b2-immich/password" = {};
};
};
services.restic.backups = {
b2-immich = {
initialize = true;
environmentFile = config.sops.secrets."b2-immich/env".path;
repositoryFile = config.sops.secrets."b2-immich/repo".path;
passwordFile = config.sops.secrets."b2-immich/password".path;
paths = [
"/rice/immich"
];
timerConfig = {
OnCalendar = "06:00";
};
pruneOpts = [
"--keep-daily 14"
"--keep-monthly 6"
"--keep-yearly 1"
];
};
};
}

View file

@ -1,11 +1,11 @@
{lib, pkgs, config, ...}: {
imports = [
./hardware-configuration.nix
./backups.nix
];
sops = {
defaultSopsFile = ../../secrets/cf-acme.yaml;
secrets = {
"env" = {};
"env" = { sopsFile = ../../secrets/cf-acme.yaml; };
};
};
documentation = {
@ -91,11 +91,11 @@
2022
6443
25565
30001
9001
30303
];
allowedUDPPorts = [
30001
9001
30303
];
logRefusedConnections = true;