Add network dongle ip config

Signed-off-by: Tristan Druyen <tristan@vault81.de>
This commit is contained in:
Tristan D. 2023-09-18 12:16:07 +02:00
parent 81f099c52b
commit cd81bc3cf7
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY

View file

@ -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";