os/hosts/pie/backup.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
432 B
Nix
Raw Normal View History

2023-10-21 20:46:17 +00:00
{
flake,
config,
pkgs,
lib,
...
}: let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
in {
age.secrets."rclone-pubsolar.conf" = {
file = "${flake.self}/secrets/rclone-pubsolar.conf.age";
2023-10-21 20:46:17 +00:00
path = "/root/.config/rclone/rclone.conf";
mode = "400";
2023-10-21 20:46:17 +00:00
};
age.secrets."restic-password" = {
2023-10-21 20:46:17 +00:00
file = "${flake.self}/secrets/restic-password.age";
mode = "400";
2023-10-21 20:46:17 +00:00
};
}