add backups to semita, sam and nix-bitcoin
This commit is contained in:
parent
2821aa4c27
commit
a12c1d3469
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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" = {
|
||||
|
|
Loading…
Reference in New Issue