❄️ Nix configurations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

set static ip

+13 -1
+13 -1
nixos/ferret/hardware-configuration.nix
··· 20 20 }; 21 21 22 22 swapDevices = [{ device = "/dev/disk/by-uuid/d96908d3-b46e-40c2-a5e0-82b71196899c"; }]; 23 - networking.useDHCP = lib.mkDefault true; 23 + networking.useDHCP = false; 24 + networking.interfaces.enp2s0.ipv4.addresses = [ 25 + { 26 + address = "192.168.1.10"; 27 + prefixLength = 24; 28 + } 29 + ]; 30 + networking.defaultGateway = { 31 + address = "192.168.1.1"; 32 + interface = "enp2s0"; 33 + }; 34 + networking.useNetworkd = true; 35 + networking.nameservers = [ "1.1.1.1" "1.0.0.1" ]; 24 36 # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; 25 37 # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; 26 38