add backups to semita, sam and nix-bitcoin

This commit is contained in:
Sam 2025-01-04 17:20:30 +00:00
parent 2821aa4c27
commit a12c1d3469
3 changed files with 31 additions and 2 deletions

View File

@ -20,6 +20,18 @@ in {
];
};
services.restic.backups = {
daily = {
paths = [
"/media/main-ssd/nix-bitcoin/"
];
exclude = [
"/media/main-ssd/nix-bitcoin/bitcoind"
"/media/main-ssd/nix-bitcoin/electrs"
];
};
};
networking.nat.enable = true;
networking.nat.internalInterfaces = ["ve-+"];
networking.nat.externalInterface = "br0";
@ -132,7 +144,9 @@ in {
};
extraConfig = ''
alias=bitlab21
'';
tor.active=true
tor.skip-proxy-for-clearnet-targets=1
'';
};
rtl = {
enable = true;

View File

@ -14,6 +14,18 @@
baseddataPostgresIp = configVars.networking.addresses.postgres.ip;
username = "sam";
in {
services.restic.backups = {
daily = {
paths = [
"/home/${username}/"
];
exclude = [
"/home/${username}/.mozilla"
"/home/${username}/.cache"
];
};
};
users.users.${username} = {
isNormalUser = true;
shell = pkgs.zsh; # default shell
@ -27,6 +39,8 @@ in {
"lp"
"docker"
"podman"
"render"
"video"
];
};
services.tailscale.enable = true;

View File

@ -58,7 +58,8 @@ in {
../common/optional/nix-ld.nix
../common/optional/gaming.nix
../common/optional/docker/jellyfin.nix
../common/optional/restic-backup.nix
../common/optional/nixos-containers/backup-server.nix
];
fileSystems."/media/main-ssd" = {