diff --git a/machines/dolomite/claw.nix b/machines/dolomite/claw.nix index b8cf692..82bad29 100644 --- a/machines/dolomite/claw.nix +++ b/machines/dolomite/claw.nix @@ -1,12 +1,9 @@ { - config, lib, modulesPath, ... }: -let - cfg = config.isClaw; -in + { imports = [ (modulesPath + "/profiles/qemu-guest.nix") @@ -16,7 +13,7 @@ in isClaw = lib.mkEnableOption "Lightsail instance"; }; - config = lib.mkIf cfg { + config = { boot.initrd.availableKernelModules = [ "uhci_hcd" "virtio_blk" @@ -45,9 +42,7 @@ in # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - # networking.useNetworkd = false; - - systemd.network.enable = true; + networking.useNetworkd = true; systemd.network.networks."10-wan" = { matchConfig.MACAddress = "00:16:3e:0a:ec:45"; networkConfig.DHCP = "ipv4";