From 90e4691c2547e83df25728c62efcae2d1f537dd4 Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 10 Mar 2026 20:04:40 +0100 Subject: [PATCH] fixes some errors --- modules/cli-tools/default.nix | 2 +- modules/restic/default.nix | 54 ++++++++++++++++++----------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/modules/cli-tools/default.nix b/modules/cli-tools/default.nix index 4147599..fd365f0 100644 --- a/modules/cli-tools/default.nix +++ b/modules/cli-tools/default.nix @@ -2,7 +2,7 @@ let commonPackages = pkgs: with pkgs; [ - neofetch + fastfetch zip unzip ripgrep diff --git a/modules/restic/default.nix b/modules/restic/default.nix index 9b44db6..146d2db 100644 --- a/modules/restic/default.nix +++ b/modules/restic/default.nix @@ -20,33 +20,35 @@ }; }; - # Root SSH for storage box - programs.ssh = { - extraConfig = '' - Host dnsc-storage - AddKeysToAgent yes - Hostname u295965.your-storagebox.de - User u295965 - IdentityFile /root/.ssh/id_ed25519 - IdentitiesOnly yes - Port 23 - ''; - }; + config = { + # Root SSH for storage box + programs.ssh = { + extraConfig = '' + Host dnsc-storage + AddKeysToAgent yes + Hostname u295965.your-storagebox.de + User u295965 + IdentityFile /root/.ssh/id_ed25519 + IdentitiesOnly yes + Port 23 + ''; + }; - services.restic.backups = { - "dnsc-storage" = { - initialize = true; - passwordFile = config.age.secrets."restic/password".path; - repository = config.restic.repository; - createWrapper = true; - paths = config.restic.backupPaths; - pruneOpts = [ - "--keep-last 3" - ]; - timerConfig = { - OnCalendar = "daily"; - Persistent = true; - RandomizedDelaySec = "5h"; + services.restic.backups = { + "dnsc-storage" = { + initialize = true; + passwordFile = config.age.secrets."restic/password".path; + repository = config.restic.repository; + createWrapper = true; + paths = config.restic.backupPaths; + pruneOpts = [ + "--keep-last 3" + ]; + timerConfig = { + OnCalendar = "daily"; + Persistent = true; + RandomizedDelaySec = "5h"; + }; }; }; };