diff --git a/.gitignore b/.gitignore index 74c0e19..ad9ce90 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -flake.lock \ No newline at end of file +flake.lock +hardware-configuration.nix diff --git a/hosts/worker/hardware-configuration.nix b/hosts/worker/hardware-configuration.nix index 4eacc23..fc7c5f3 100644 --- a/hosts/worker/hardware-configuration.nix +++ b/hosts/worker/hardware-configuration.nix @@ -5,25 +5,19 @@ { imports = - [ (modulesPath + "/installer/scan/not-detected.nix") + [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; + boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/bcdf8feb-de2c-45db-b929-7c91a1f79ce4"; + { device = "/dev/disk/by-uuid/d38b7915-7d9f-4ffb-bff1-624902450344"; fsType = "ext4"; }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/F794-8574"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking @@ -31,8 +25,7 @@ # 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.useDHCP = lib.mkDefault true; - # networking.interfaces.enp42s0.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; }