mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-22 23:35:51 -06:00
reorg
This commit is contained in:
parent
e17cc880ca
commit
10280b0495
2 changed files with 22 additions and 19 deletions
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
enabled,
|
enabled,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -16,24 +15,6 @@
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
# maybe I don't need to use root and can use this strategy?
|
|
||||||
# https://wiki.nixos.org/wiki/Restic#Security_Wrapper
|
|
||||||
# would this make it possible for me to run the binary as my 'normal user'?
|
|
||||||
services.restic.backups.gdrive = {
|
|
||||||
# directories created by gitea and soft-serve aren't world readable
|
|
||||||
user = "root";
|
|
||||||
rcloneConfigFile = "/home/daylin/.config/rclone/rclone.conf";
|
|
||||||
repository = "rclone:g:archives/algiz";
|
|
||||||
passwordFile = config.sops.secrets.restic-algiz.path;
|
|
||||||
paths = [
|
|
||||||
"/home/daylin/services/git/"
|
|
||||||
"/home/daylin/services/gotosocial/"
|
|
||||||
"/home/daylin/services/caddy/"
|
|
||||||
"/home/daylin/services/wedding-website/"
|
|
||||||
"/home/daylin/services/bsky-pds/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# git user handles the forgjo ssh authentication
|
# git user handles the forgjo ssh authentication
|
||||||
users.users.git.isNormalUser = true;
|
users.users.git.isNormalUser = true;
|
||||||
}
|
}
|
||||||
|
|
22
hosts/algiz/restic.nix
Normal file
22
hosts/algiz/restic.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
|
||||||
|
services.restic.backups.gdrive = {
|
||||||
|
# directories created by gitea and soft-serve aren't world readable
|
||||||
|
user = "root";
|
||||||
|
|
||||||
|
rcloneConfigFile = "/home/daylin/.config/rclone/rclone.conf";
|
||||||
|
repository = "rclone:g:archives/algiz";
|
||||||
|
passwordFile = config.sops.secrets.restic-algiz.path;
|
||||||
|
paths = [
|
||||||
|
"/home/daylin/services/git/"
|
||||||
|
"/home/daylin/services/gotosocial/"
|
||||||
|
"/home/daylin/services/caddy/"
|
||||||
|
"/home/daylin/services/wedding-website/"
|
||||||
|
"/home/daylin/services/bsky-pds/"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue