This commit is contained in:
2026-05-26 02:39:47 +09:00
parent 586510460d
commit 97e4a774f8
3 changed files with 81 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{...}: {
imports = [
./hardware-configuration.nix
];
services.qemuGuest.enable = true;
networking = {
useDHCP = false;
interfaces = {
ens18 = {
useDHCP = false;
ipv4.addresses = [
{
address = "10.50.128.20";
prefixLength = 24;
}
];
};
ens19 = {
useDHCP = false;
ipv4.addresses = [
{
address = "10.50.7.101";
prefixLength = 24;
}
];
};
};
defaultGateway = {
address = "10.50.128.1";
interface = "ens18";
};
nameservers = [
"1.1.1.1"
];
};
}