test iso
This commit is contained in:
35
modules/features/networking.nix
Normal file
35
modules/features/networking.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ ... }: {
|
||||
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user