mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
feat: init backup module
This commit is contained in:
parent
71693eaa99
commit
23fc74efa6
7 changed files with 169 additions and 0 deletions
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 ];
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue