before flake update
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
## Server
|
||||
../server/starship.nix
|
||||
../server/wireguard-ui.nix
|
||||
];
|
||||
|
||||
## Enable virtualisation guest settings
|
||||
@@ -24,4 +25,52 @@
|
||||
pkgs.spice-gtk # Outils SPICE
|
||||
pkgs.spice-protocol # Protocoles SPICE
|
||||
];
|
||||
|
||||
systemd.network.links."10-eth0" = {
|
||||
matchConfig.MACAddress = "52:54:00:a3:d7:56";
|
||||
linkConfig.Name = "eth0";
|
||||
};
|
||||
|
||||
systemd.network.netdevs."10-dummy0" = {
|
||||
netdevConfig = {
|
||||
Kind = "dummy";
|
||||
Name = "dummy0";
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
useDHCP = false;
|
||||
|
||||
interfaces = {
|
||||
dummy0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.2.1";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
eth0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.122.10";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
defaultGateway = {
|
||||
address = "192.168.122.1";
|
||||
interface = "eth0";
|
||||
};
|
||||
nameservers = [
|
||||
#"9.9.9.9"
|
||||
"2001:41d0:303:20da::1"
|
||||
"217.182.138.218"
|
||||
];
|
||||
extraHosts = ''
|
||||
172.18.21.172 errorpages.grandbesancon.fr
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user