Set up machine-borg2-01.cryto.net

master
Sven Slootweg 5 years ago
parent b3f44f497a
commit 2f7621e852

@ -30,6 +30,46 @@ in {
description = "Cryto"; 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: { "machine-haless-03.cryto.net" = { pkgs, lib, config, ... }@args: {
system.stateVersion = "19.03"; system.stateVersion = "19.03";

@ -0,0 +1,29 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports = [ ];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c87215cc-952c-48c8-92d4-2d5bb2ab9fe2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7f301f2f-c3c1-4209-88e4-2488a829a98b";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/a610584c-2d0e-4027-a869-90427a59f542"; }
];
nix.maxJobs = lib.mkDefault 1;
virtualisation.hypervGuest.enable = true;
}
Loading…
Cancel
Save