Compare commits
No commits in common. "92b94f0d2fb0211c50d18bed1f34e98ca0fabf58" and "3681ec55f3dea82c6bf07e78a7dea7a9c7c52b53" have entirely different histories.
92b94f0d2f
...
3681ec55f3
5 changed files with 45 additions and 7 deletions
|
@ -48,7 +48,7 @@
|
|||
User notoh
|
||||
IdentityFile ~/.ssh/kariru
|
||||
Host yuki
|
||||
HostName 100.108.113.89
|
||||
HostName 100.110.140.130
|
||||
User notoh
|
||||
IdentityFile ~/.ssh/yuki
|
||||
Host arashi
|
||||
|
|
|
@ -21,7 +21,7 @@ inputs: {
|
|||
magicRollback = true;
|
||||
};
|
||||
yuki = {
|
||||
hostname = "100.108.113.89";
|
||||
hostname = "100.110.140.130";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = activate.nixos inputs.self.nixosConfigurations.yuki;
|
||||
|
|
|
@ -90,25 +90,25 @@
|
|||
|
||||
"truenas.internal.flake.sh" = "192.168.1.199";
|
||||
"assistant.internal.flake.sh" = "192.168.1.189";
|
||||
"dashboard.internal.flake.sh" = "192.168.1.98";
|
||||
"dashboard.internal.flake.sh" = "192.168.1.36";
|
||||
"udm.internal.flake.sh" = "192.168.1.1";
|
||||
"pve.internal.flake.sh" = "192.168.1.37";
|
||||
"pbs.internal.flake.sh" = "192.168.1.38";
|
||||
|
||||
# media
|
||||
|
||||
"jellyfin.internal.flake.sh" = "192.168.1.98";
|
||||
"jellyseerr.internal.flake.sh" = "192.168.1.98";
|
||||
"jellyfin.internal.flake.sh" = "192.168.1.36";
|
||||
"jellyseerr.internal.flake.sh" = "192.168.1.36";
|
||||
"sonarr.internal.flake.sh" = "192.168.1.54";
|
||||
"radarr.internal.flake.sh" = "192.168.1.54";
|
||||
"bazarr.internal.flake.sh" = "192.168.1.54";
|
||||
"prowlarr.internal.flake.sh" = "192.168.1.54";
|
||||
"stash.internal.flake.sh" = "192.168.1.98";
|
||||
"stash.internal.flake.sh" = "192.168.1.36";
|
||||
"nextcloud.internal.flake.sh" = "192.168.1.199";
|
||||
|
||||
# misc
|
||||
|
||||
"wallos.internal.flake.sh" = "192.168.1.98";
|
||||
"wallos.internal.flake.sh" = "192.168.1.36";
|
||||
"synology.internal.flake.sh" = "192.168.1.71";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./restic.nix
|
||||
./traefik.nix
|
||||
./stash.nix
|
||||
./jellyfin.nix
|
||||
./wallos.nix
|
||||
./homepage.nix
|
||||
./glances.nix
|
||||
];
|
||||
}
|
||||
|
|
36
hosts/yuki/services/restic.nix
Normal file
36
hosts/yuki/services/restic.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
sops.secrets.restic-repo-pwd = {};
|
||||
environment.systemPackages = [pkgs.restic];
|
||||
services.restic = {
|
||||
backups = {
|
||||
yuki = {
|
||||
paths = [
|
||||
"/home"
|
||||
];
|
||||
exclude = [
|
||||
"*.qcow2"
|
||||
"*.iso"
|
||||
"/home/*/Downloads"
|
||||
"/home/*/.cache"
|
||||
"/home/*/.local/share/Trash"
|
||||
"/home/*/.local/share/.var"
|
||||
];
|
||||
pruneOpts = [
|
||||
"--keep-daily=4"
|
||||
"--keep-weekly=3"
|
||||
"--keep-monthly=2"
|
||||
];
|
||||
initialize = true;
|
||||
repository = "/nas/home";
|
||||
passwordFile = config.sops.secrets.restic-repo-pwd.path;
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue