mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:08:11 +09:00
46 lines
874 B
Nix
46 lines
874 B
Nix
# 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"
|
||
];
|
||
};
|
||
}
|