feat(desktop): local restic backup.
This commit is contained in:
parent
33f606aebf
commit
64a1ecc15e
6 changed files with 144 additions and 71 deletions
19
modules/linux/home-manager/secrets.nix
Normal file
19
modules/linux/home-manager/secrets.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.home-secrets.enable = lib.mkEnableOption "Enable home-manager secrets.";
|
||||
};
|
||||
config = lib.mkIf config.crony.home-secrets.enable {
|
||||
age = {
|
||||
secrets = {
|
||||
restic-local-pass = {
|
||||
file = ../../../secrets/restic-local-pass.age;
|
||||
};
|
||||
};
|
||||
identityPaths = ["/home/crony/.ssh/main" "/root/.ssh/id_ed25519"];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue