set hostname before dhcp client runs

This commit is contained in:
Daniel Barlow
2023-03-08 22:11:59 +00:00
parent 2318c54037
commit 91c0147919
4 changed files with 30 additions and 5 deletions

View File

@@ -38,6 +38,8 @@ in rec {
./modules/flashable.nix
];
hostname = "extneder";
kernel = {
config = {
@@ -90,7 +92,10 @@ in rec {
type = "bridge";
device = "int";
};
services.dhcpc = (udhcpc services.int {}) // {device = "int";};
services.dhcpc = (udhcpc services.int {
dependencies = [ config.services.hostname ];
}) // { device = "int"; };
services.bridge = let
primary = services.int;
@@ -154,7 +159,7 @@ in rec {
name = "default";
contents =
let links = config.hardware.networkInterfaces;
in with services; [
in with config.services; [
links.lo links.eth links.wlan
int
bridge