mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
feat: init backup module
This commit is contained in:
parent
71693eaa99
commit
23fc74efa6
7 changed files with 169 additions and 0 deletions
|
@ -57,6 +57,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.backup.includes = [ "/var/lib/stalwart-mail/db" ];
|
||||
|
||||
age.secrets.stalwart-admin-hash = {
|
||||
file = ../../secrets/stalwart-admin.age;
|
||||
path = "/var/lib/stalwart-mail/admin-hash";
|
||||
|
|
16
machines/gustave/borg.nix
Normal file
16
machines/gustave/borg.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.borg = {
|
||||
home = "/home/borg";
|
||||
group = "borg";
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAziNbLEO9D69xUGPGEq3eXYauFuOlvhqQTwpLNKjFqs julien@tower"
|
||||
];
|
||||
|
||||
};
|
||||
users.groups.borg = { };
|
||||
|
||||
environment.systemPackages = with pkgs; [ borgbackup ];
|
||||
|
||||
}
|
|
@ -9,6 +9,7 @@
|
|||
./hardware.nix
|
||||
./home-julien.nix
|
||||
./nsd.nix
|
||||
./borg.nix
|
||||
];
|
||||
|
||||
machine.meta = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue