Compare commits

..

No commits in common. "81621b62901018a4b90700d649ef6f0d7f19501d" and "1abf59fb4c624366d4eae603b2fc6aec8b55fd7e" have entirely different histories.

6 changed files with 19 additions and 21 deletions

View file

@ -314,11 +314,11 @@
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1765201597, "lastModified": 1762785534,
"narHash": "sha256-U2qQz4nT90J7rCi0tjWuAUH0L4XQfw6pTDBVG1gb7YI=", "narHash": "sha256-Xjn0Wq1ucfDwOV8Z3HkGMn3vMeI3wTIH9vLmXUSBobU=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "524fd38551f5d459f984c45b6225e729371c107e", "rev": "1fda2dc905e1a8c765d1331d83327c47a895bb60",
"revCount": 56, "revCount": 53,
"type": "git", "type": "git",
"url": "ssh://git@git.catgirl.dog/etwas/private-nix-configs" "url": "ssh://git@git.catgirl.dog/etwas/private-nix-configs"
}, },

View file

@ -1,4 +1,5 @@
{ {
config,
pkgs, pkgs,
inputs, inputs,
spicetify-nix, spicetify-nix,
@ -47,6 +48,11 @@
./misc_pkgs ./misc_pkgs
./wm ./wm
]; ];
services.restic.backups.localbackup = {
passwordFile = config.age.secrets.restic-password.path;
environmentFile = config.age.secrets.restic-s3-key.path;
};
}; };
}; };

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./git.nix ./git.nix
./keyring.nix ./keyring.nix
./restic.nix
./ssh.nix ./ssh.nix
./zsh.nix ./zsh.nix
]; ];

View file

@ -1,36 +1,29 @@
{ config, ... }: { ... }:
{ {
services.restic = { services.restic = {
enable = true;
backups = { backups = {
localbackup = { localbackup = {
passwordFile = config.age.secrets.restic-password.path;
environmentFile = config.age.secrets.restic-s3-key.path;
exclude = [ exclude = [
"home/*/.local/share/libvirt" "/home/$USER/.cache"
"home/*/.local/share/Steam" "/home/$USER/.local/share/libvirt"
"home/*/.local/share/Trash" "/home/$USER/.local/share/Steam"
"home/*/Android" "/home/$USER/.local/share/Trash"
".cache" "/home/$USER/Android"
".mozilla"
".venv" ".venv"
"venv" "venv"
".direnv" ".direnv"
".git" ".git"
]; ];
initialize = true; initialize = true;
paths = [ paths = [
"/home" "/home"
]; ];
extraBackupArgs = [ extraBackupArgs = [
"--one-file-system" "--one-file-system"
]; ];
repository = "s3:https://s3.filmsli.de/restic-framework"; repository = "s3:https://s3.filmsli.de/restic-framework";
pruneOpts = [ pruneOpts = [
"--keep-daily 7" "--keep-daily 7"
"--keep-weekly 4" "--keep-weekly 4"

View file

@ -95,7 +95,6 @@
usbmuxd usbmuxd
dig dig
w3m w3m
whois
inetutils inetutils
# virtualization # virtualization

View file

@ -3,7 +3,6 @@
./auth.nix ./auth.nix
./docker.nix ./docker.nix
./printing.nix ./printing.nix
./restic.nix
./wm.nix ./wm.nix
]; ];
} }