Compare commits
No commits in common. "ce0633b8f258a2d5d92c066898b2b3b097043f80" and "bd2004199f5aa90930d5b3d01c760859e84550db" have entirely different histories.
ce0633b8f2
...
bd2004199f
1 changed files with 3 additions and 8 deletions
|
@ -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.<interface>.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";
|
||||
|
|
Loading…
Add table
Reference in a new issue