-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My laptop now uses BorgBackup over SSH. This allow me to run backups over my Tailnet even when I'm aways from home.
- Loading branch information
Showing
5 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ config, lib, ... }: | ||
|
||
{ | ||
imports = [ | ||
./nas.nix | ||
]; | ||
|
||
users.users.borg = { | ||
isNormalUser = lib.mkForce true; | ||
isSystemUser = lib.mkForce false; | ||
uid = 1000; | ||
extraGroups = [ "git" ]; | ||
}; | ||
users.groups.borg = { | ||
gid = 1000; | ||
}; | ||
|
||
systemd.services.borgbackup-repo-x1.serviceConfig = { | ||
User = "borg"; | ||
}; | ||
|
||
services.borgbackup.repos = { | ||
x1 = { | ||
authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYh9g6mgiD2ckSeeZ+eXhEYSnFPo1/jNKpmhTX5U5i3 root@x1" ]; | ||
path = "/mnt/nas/backup/borg/x1"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters