Skip to content

Commit

Permalink
fix: using dhcp for an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Nov 4, 2024
1 parent 4e3f294 commit ddb0199
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion modules/nixos/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ let

interfaces = {
"${config.network.interface}" = {
useDHCP = false;
useDHCP = true;
};
};

Expand Down
5 changes: 0 additions & 5 deletions nixos/kolyma-4/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,5 @@
};
};

# I don't know why but forcing static ip address with no
# dhcpd breaks networking, so need to use dhcp alongside
# static ip addresses.
networking.interfaces."eth0".useDHCP = lib.mkForce true;

nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

0 comments on commit ddb0199

Please sign in to comment.