Compare commits

...

2 commits

Author SHA1 Message Date
ce0633b8f2
fixup! fixup! dolomite: add hk-00 node 2024-11-07 15:04:44 +08:00
13b7fab067
fixup! dolomite: add hk-00 node 2024-11-07 14:51:19 +08:00

View file

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