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" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1762785534, "lastModified": 1765201597,
"narHash": "sha256-Xjn0Wq1ucfDwOV8Z3HkGMn3vMeI3wTIH9vLmXUSBobU=", "narHash": "sha256-U2qQz4nT90J7rCi0tjWuAUH0L4XQfw6pTDBVG1gb7YI=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "1fda2dc905e1a8c765d1331d83327c47a895bb60", "rev": "524fd38551f5d459f984c45b6225e729371c107e",
"revCount": 53, "revCount": 56,
"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,5 +1,4 @@
{ {
config,
pkgs, pkgs,
inputs, inputs,
spicetify-nix, spicetify-nix,
@ -48,11 +47,6 @@
./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,7 +2,6 @@
imports = [ imports = [
./git.nix ./git.nix
./keyring.nix ./keyring.nix
./restic.nix
./ssh.nix ./ssh.nix
./zsh.nix ./zsh.nix
]; ];

View file

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

View file

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

View file

@ -1,29 +1,36 @@
{ ... }: { 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/$USER/.cache" "home/*/.local/share/libvirt"
"/home/$USER/.local/share/libvirt" "home/*/.local/share/Steam"
"/home/$USER/.local/share/Steam" "home/*/.local/share/Trash"
"/home/$USER/.local/share/Trash" "home/*/Android"
"/home/$USER/Android" ".cache"
".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"