Add network dongle ip config
Signed-off-by: Tristan Druyen <tristan@vault81.de>
This commit is contained in:
parent
81f099c52b
commit
cd81bc3cf7
1 changed files with 18 additions and 2 deletions
20
hardware.nix
20
hardware.nix
|
@ -40,8 +40,24 @@
|
|||
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||
interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||
interfaces = {
|
||||
enp1s0.useDHCP = lib.mkDefault true;
|
||||
wlp3s0.useDHCP = lib.mkDefault true;
|
||||
enp5s0f4u1u1c2 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.0.21";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
defaultGateway = {
|
||||
address = "192.168.0.5";
|
||||
interface = "enp5s0f4u1u1c2";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
Loading…
Add table
Reference in a new issue