36 lines
831 B
Nix
36 lines
831 B
Nix
{ ... }: {
|
|
|
|
flake.nixosModules.static-eth = { config, lib, ... }: {
|
|
|
|
networking = {
|
|
interfaces.eno1 = {
|
|
ipv4.addresses = [{
|
|
address = "192.0.2.2";
|
|
prefixLength = 24;
|
|
}];
|
|
};
|
|
|
|
defaultGateway = {
|
|
address = "192.0.2.1";
|
|
interface = "eno1";
|
|
};
|
|
};
|
|
};
|
|
|
|
flake.nixosModules.static-wl = { config, lib, ... }: {
|
|
|
|
networking = {
|
|
interfaces.wlo1 = {
|
|
ipv4.addresses = [{
|
|
address = "192.0.3.2";
|
|
prefixLength = 24;
|
|
}];
|
|
};
|
|
defaultGateway = {
|
|
address = "192.0.3.1";
|
|
interface = "wlo1";
|
|
};
|
|
};
|
|
};
|
|
}
|