feat: add server configuration

This commit is contained in:
Nickolaj Jepsen 2025-03-09 20:30:33 +01:00
parent 0d47ab58f5
commit 9665106633
42 changed files with 4282 additions and 99 deletions

19
hosts/homelab/restic.nix Normal file
View file

@ -0,0 +1,19 @@
{
pkgs,
config,
...
}: {
environment.systemPackages = with pkgs; [
restic
];
age.secrets.restic-password.rekeyFile = ../../secrets/hosts/homelab/restic-password.age;
age.secrets.restic-env.rekeyFile = ../../secrets/hosts/homelab/restic-env.age;
services.restic.backups.server = {
repository = "b2:fireproof-backup";
timerConfig = null;
passwordFile = "${config.age.secrets.restic-password.path}";
environmentFile = "${config.age.secrets.restic-env.path}";
};
}