Finalize fix for SIIT-DC on Hetzner cloud
This commit is contained in:
parent
b570a298a2
commit
3f1b629e75
3 changed files with 37 additions and 12 deletions
|
@ -1,6 +1,25 @@
|
||||||
{ lib, modulesPath, ... }:
|
{ lib, modulesPath, ... }:
|
||||||
{
|
{
|
||||||
boot.loader.grub.devices = [ "/dev/sda" ];
|
systemd.network.enable = true;
|
||||||
|
systemd.network.networks."10-wan" = {
|
||||||
|
matchConfig.Name = "enp1s0";
|
||||||
|
networkConfig.DHCP = "ipv4";
|
||||||
|
address = [
|
||||||
|
"2a01:4f9:c013:bd27::1/64"
|
||||||
|
];
|
||||||
|
routes = [
|
||||||
|
{ Gateway = "fe80::1"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.loader = {
|
||||||
|
efi.canTouchEfiVariables = false;
|
||||||
|
systemd-boot.enable = false;
|
||||||
|
grub = {
|
||||||
|
enable = true;
|
||||||
|
devices = [ "/dev/sda" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -20,7 +39,5 @@
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,19 +4,24 @@
|
||||||
jool = {
|
jool = {
|
||||||
enable = true;
|
enable = true;
|
||||||
siit.default = {
|
siit.default = {
|
||||||
global.pool6 = "${config.custom.gua_pref}46::/96";
|
global.pool6 = "2a01:4f9:c013:bd27:46::/96";
|
||||||
|
|
||||||
# Explicit address mappings
|
# Explicit address mappings
|
||||||
eamt = [
|
eamt = [
|
||||||
|
{
|
||||||
|
# Cache/CI
|
||||||
|
"ipv6 prefix" = "${config.custom.gua_pref}d2:be24:11ff:fe7f:f84c/128";
|
||||||
|
"ipv4 prefix" = "95.217.30.123/32";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
# Forgejo
|
# Forgejo
|
||||||
"ipv6 prefix" = "${config.custom.gua_pref}d2:be24:11ff:feee:9c55/128";
|
"ipv6 prefix" = "${config.custom.gua_pref}d2:be24:11ff:feee:9c55/128";
|
||||||
"ipv4 prefix" = "157.180.86.116/32";
|
"ipv4 prefix" = "95.216.180.210/32";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
# Idacloud
|
# Idacloud
|
||||||
"ipv6 prefix" = "${config.custom.gua_pref}d3:be24:11ff:fece:7d63/128";
|
"ipv6 prefix" = "${config.custom.gua_pref}d3:be24:11ff:fece:7d63/128";
|
||||||
"ipv4 prefix" = "95.216.180.210/32";
|
"ipv4 prefix" = "95.217.26.243/32";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,19 +5,22 @@
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "msdos";
|
type = "table";
|
||||||
partitions = {
|
format = "msdos";
|
||||||
root = {
|
partitions = [
|
||||||
|
{
|
||||||
name = "nixos";
|
name = "nixos";
|
||||||
|
part-type = "primary";
|
||||||
bootable = true;
|
bootable = true;
|
||||||
size = "100%";
|
start = "1M";
|
||||||
|
end = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
};
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue