fix: networking on tower

This commit is contained in:
Julien Malka 2023-04-15 15:09:38 +02:00
parent dbc79339e3
commit 5ff60c7935
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -5,7 +5,8 @@
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
[
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
@ -14,7 +15,8 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/274b827e-73aa-46fe-a68c-7f401c76977d";
{
device = "/dev/disk/by-uuid/274b827e-73aa-46fe-a68c-7f401c76977d";
fsType = "ext4";
};
@ -24,8 +26,8 @@
# (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.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
# networking.useDHCP = lib.mkDefault true;
networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;