Compare commits

..

No commits in common. "92b94f0d2fb0211c50d18bed1f34e98ca0fabf58" and "3681ec55f3dea82c6bf07e78a7dea7a9c7c52b53" have entirely different histories.

5 changed files with 45 additions and 7 deletions

View file

@ -48,7 +48,7 @@
User notoh User notoh
IdentityFile ~/.ssh/kariru IdentityFile ~/.ssh/kariru
Host yuki Host yuki
HostName 100.108.113.89 HostName 100.110.140.130
User notoh User notoh
IdentityFile ~/.ssh/yuki IdentityFile ~/.ssh/yuki
Host arashi Host arashi

View file

@ -21,7 +21,7 @@ inputs: {
magicRollback = true; magicRollback = true;
}; };
yuki = { yuki = {
hostname = "100.108.113.89"; hostname = "100.110.140.130";
profiles.system = { profiles.system = {
user = "root"; user = "root";
path = activate.nixos inputs.self.nixosConfigurations.yuki; path = activate.nixos inputs.self.nixosConfigurations.yuki;

View file

@ -90,25 +90,25 @@
"truenas.internal.flake.sh" = "192.168.1.199"; "truenas.internal.flake.sh" = "192.168.1.199";
"assistant.internal.flake.sh" = "192.168.1.189"; "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"; "udm.internal.flake.sh" = "192.168.1.1";
"pve.internal.flake.sh" = "192.168.1.37"; "pve.internal.flake.sh" = "192.168.1.37";
"pbs.internal.flake.sh" = "192.168.1.38"; "pbs.internal.flake.sh" = "192.168.1.38";
# media # media
"jellyfin.internal.flake.sh" = "192.168.1.98"; "jellyfin.internal.flake.sh" = "192.168.1.36";
"jellyseerr.internal.flake.sh" = "192.168.1.98"; "jellyseerr.internal.flake.sh" = "192.168.1.36";
"sonarr.internal.flake.sh" = "192.168.1.54"; "sonarr.internal.flake.sh" = "192.168.1.54";
"radarr.internal.flake.sh" = "192.168.1.54"; "radarr.internal.flake.sh" = "192.168.1.54";
"bazarr.internal.flake.sh" = "192.168.1.54"; "bazarr.internal.flake.sh" = "192.168.1.54";
"prowlarr.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"; "nextcloud.internal.flake.sh" = "192.168.1.199";
# misc # 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"; "synology.internal.flake.sh" = "192.168.1.71";
}; };
}; };

View file

@ -1,9 +1,11 @@
{...}: { {...}: {
imports = [ imports = [
./restic.nix
./traefik.nix ./traefik.nix
./stash.nix ./stash.nix
./jellyfin.nix ./jellyfin.nix
./wallos.nix ./wallos.nix
./homepage.nix ./homepage.nix
./glances.nix
]; ];
} }

View 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";
};
};
};
};
}