diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-11-26 13:16:46 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-11-26 13:16:46 +0100 |
commit | a5fdabeb68976aa0e7af9e56886a9eff607ccf97 (patch) | |
tree | cf3550421fdf6d54f7de534c50f851b6920d9c77 /modules | |
parent | 06370a6f922d1bff9533e2114fcf610acbc30a89 (diff) | |
download | nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.tar nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.tar.gz nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.tar.bz2 nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.tar.lz nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.tar.xz nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.tar.zst nixlib-a5fdabeb68976aa0e7af9e56886a9eff607ccf97.zip |
modules/persistence/restic: init
Diffstat (limited to 'modules')
-rw-r--r-- | modules/persistence/default.nix | 4 | ||||
-rw-r--r-- | modules/persistence/restic/default.nix | 16 |
2 files changed, 19 insertions, 1 deletions
diff --git a/modules/persistence/default.nix b/modules/persistence/default.nix index 5840f6385cf2..d5fbed56c08c 100644 --- a/modules/persistence/default.nix +++ b/modules/persistence/default.nix @@ -1,5 +1,7 @@ { ... }: { - imports = [ ./bluetooth ./networkmanager ./nixos ./postfix ./systemd ]; + imports = [ + ./bluetooth ./networkmanager ./nixos ./postfix ./restic ./systemd + ]; } diff --git a/modules/persistence/restic/default.nix b/modules/persistence/restic/default.nix new file mode 100644 index 000000000000..5c06e4046959 --- /dev/null +++ b/modules/persistence/restic/default.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + systemd.tmpfiles.rules = [ + "L+ /etc/restic - - - - /persist/safe/etc/restic" + ]; + + services.restic.backups = { + scaleway = { + repository = "s3:https://s3.nl-ams.scw.cloud/swipe-stammer"; + passwordFile = "/etc/restic/scaleway/password"; + environmentFile = "/etc/restic/scaleway/env"; + paths = [ "/persist/safe" ]; + }; + }; +} |