mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
start replacing sops with agenix
This commit is contained in:
parent
719ef1ba91
commit
591c0cd6b5
15 changed files with 61 additions and 17 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
sops.secrets."borg/passphrase" = { };
|
||||
age.secrets."borg/passphrase" = {
|
||||
file = ../../../../secrets/thinkpad/borg/passphrase.age;
|
||||
};
|
||||
environment.systemPackages = [ pkgs.borgbackup ];
|
||||
services.borgmatic = {
|
||||
enable = true;
|
||||
|
@ -32,7 +34,7 @@
|
|||
"/home/*/.local/share"
|
||||
"/home/*/Linux/Isos"
|
||||
];
|
||||
encryption_passcommand = "${pkgs.coreutils}/bin/cat ${config.sops.secrets."borg/passphrase".path}";
|
||||
encryption_passcommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets."borg/passphrase".path}";
|
||||
compression = "lz4";
|
||||
keep_daily = 7;
|
||||
keep_weekly = 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue