Compare commits

..

3 commits

Author SHA1 Message Date
81621b6290 feat(pkgs): add nicer whois 2025-12-08 15:15:26 +01:00
0b5ee57c69 chore: update flake.lock 2025-12-08 15:15:11 +01:00
1080e5166b fix: have restic be a system service 2025-12-08 15:15:03 +01:00
6 changed files with 21 additions and 19 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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