migrate to clan
This commit is contained in:
parent
f817ba1405
commit
f1ec59c3af
60 changed files with 225 additions and 391 deletions
17
modules/borgbackup.nix
Normal file
17
modules/borgbackup.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, inputs, ... }:
|
||||
let
|
||||
user = "u422292";
|
||||
sub-user = "${user}";
|
||||
host = "${user}.your-storagebox.de";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./storagebox.nix
|
||||
inputs.clan-core.clanModules.borgbackup
|
||||
];
|
||||
|
||||
clan.borgbackup.destinations."storagebox-${config.networking.hostName}" = {
|
||||
repo = "${sub-user}@${host}:./borgbackup/${config.networking.hostName}";
|
||||
rsh = "ssh -oPort=23 -i ${config.clan.core.vars.generators.borgbackup.files."borgbackup.ssh".path}";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./remote-builder.nix
|
||||
];
|
||||
}
|
||||
12
modules/storagebox.nix
Normal file
12
modules/storagebox.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
let
|
||||
user = "u422292";
|
||||
host = "${user}.your-storagebox.de";
|
||||
in
|
||||
{
|
||||
programs.ssh.knownHosts = {
|
||||
storagebox-ed25519 = {
|
||||
hostNames = [ "[${host}]:23" ];
|
||||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICf9svRenC/PLKIL9nk6K/pxQgoiFC41wTNvoIncOxs";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue