hosts/clerie-backup: Move VM to different region
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
./restic-server.nix
|
./restic-server.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
profiles.clerie.cybercluster-vm.enable = true;
|
profiles.clerie.ruby-vm.enable = true;
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/vda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
@@ -16,10 +16,10 @@
|
|||||||
systemd.network.networks."10-wan" = {
|
systemd.network.networks."10-wan" = {
|
||||||
matchConfig.Name = "ens18";
|
matchConfig.Name = "ens18";
|
||||||
address = [
|
address = [
|
||||||
"2001:638:904:ffc1::6/64"
|
"2a00:fe0:1:21f::a/64"
|
||||||
];
|
];
|
||||||
routes = [
|
routes = [
|
||||||
{ Gateway ="2001:638:904:ffc1::1"; }
|
{ Gateway ="2a00:fe0:1:21f::1"; }
|
||||||
];
|
];
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
ipv6AcceptRAConfig.DHCPv6Client = "no";
|
ipv6AcceptRAConfig.DHCPv6Client = "no";
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
./mercury-vm
|
./mercury-vm
|
||||||
./netcup
|
./netcup
|
||||||
./network-fallback-dhcp
|
./network-fallback-dhcp
|
||||||
|
./ruby-vm
|
||||||
./serial-console
|
./serial-console
|
||||||
./wg-clerie
|
./wg-clerie
|
||||||
];
|
];
|
||||||
|
23
profiles/ruby-vm/default.nix
Normal file
23
profiles/ruby-vm/default.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
options.profiles.clerie.ruby-vm = {
|
||||||
|
enable = mkEnableOption "Profile for ruby VMs";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.profiles.clerie.ruby-vm.enable {
|
||||||
|
|
||||||
|
profiles.clerie.serial-console.enable = true;
|
||||||
|
|
||||||
|
services.qemuGuest.enable = true;
|
||||||
|
|
||||||
|
networking.nameservers = [
|
||||||
|
"2a00:fe0:0:2::300"
|
||||||
|
"2a00:fe0:0:3::300"
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user