|
|
|
@ -30,6 +30,46 @@ in {
|
|
|
|
|
description = "Cryto";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"machine-borg2-01.cryto.net" = { pkgs, lib, ... }: {
|
|
|
|
|
system.stateVersion = "18.09";
|
|
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
presets.base
|
|
|
|
|
presets.kvm
|
|
|
|
|
./hardware-configurations/machine-borg2-01.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.loader.grub.device = lib.mkForce "/dev/vda";
|
|
|
|
|
|
|
|
|
|
users.extraUsers = {
|
|
|
|
|
backup-f0x = {
|
|
|
|
|
createHome = true;
|
|
|
|
|
home = "/home/backup-f0x";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
users.extraGroups = {
|
|
|
|
|
backup-f0x = { members = [ "backup-f0x" ]; };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.borgbackup.repos = {
|
|
|
|
|
"f0x" = {
|
|
|
|
|
allowSubRepos = true;
|
|
|
|
|
quota = "250G";
|
|
|
|
|
path = "/home/backup-f0x";
|
|
|
|
|
user = "backup-f0x";
|
|
|
|
|
group = "backup-f0x";
|
|
|
|
|
authorizedKeys = [
|
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjJDP2TDyj1X/L6gNgHCXASIWoW/VnJ77FQy39VRTi8 f0x@elephantus"
|
|
|
|
|
];
|
|
|
|
|
authorizedKeysAppendOnly = [
|
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG7WSUY6Y2lsIawo8dPBu4/Omx6c7/1SMD9ve/vpcorN borg-backup@terra"
|
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDeMWPR38zXAbURVTJs+yGDnld5kO7bcgp/70l4wJG0k borg-backup@luna"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"machine-haless-03.cryto.net" = { pkgs, lib, config, ... }@args: {
|
|
|
|
|
system.stateVersion = "19.03";
|
|
|
|
|
|
|
|
|
|