diff --git a/hosts/pioneer-momo-koeln/hardware-configuration.nix b/hosts/pioneer-momo-koeln/hardware-configuration.nix index e5592cbf..48d9cd8e 100644 --- a/hosts/pioneer-momo-koeln/hardware-configuration.nix +++ b/hosts/pioneer-momo-koeln/hardware-configuration.nix @@ -4,47 +4,44 @@ lib, ... }: { - # Use the GRUB 2 boot loader. boot.loader.systemd-boot.enable = false; - boot.loader.grub.enable = true; - # boot.loader.grub.efiSupport = true; - # boot.loader.grub.efiInstallAsRemovable = true; - # boot.loader.efi.efiSysMountPoint = "/boot/efi"; - # Define on which hard drive you want to install Grub. - boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only + boot.loader.grub = { + enable = true; + devices = [ "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1" ]; + }; - boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" "dm-snapshot" "kvm-intel" "virtio_scsi" "uas"]; - boot.extraModulePackages = []; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; boot.initrd.luks.devices."cryptroot" = { - device = "/dev/disk/by-uuid/531ee357-5777-498f-abbf-64bb4cff9a14"; + device = "/dev/disk/by-uuid/bf890962-9f43-4c44-a0df-64cabd303662"; }; - fileSystems."/" = { - device = "/dev/disk/by-uuid/f5b3152a-a3bd-46d1-968f-53d50fca921e"; - fsType = "ext4"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/7eb8989a-6ec4-405f-8810-06486f7621c1"; + fsType = "ext4"; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/1fd053f8-725b-418d-aed1-aee71dac2b62"; - fsType = "ext4"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/1fd053f8-725b-418d-aed1-aee71dac2b62"; + fsType = "ext4"; + }; - swapDevices = [ - {device = "/dev/disk/by-uuid/967d1933-131d-4b56-8aa9-15c11ff940c9";} - ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/2f114633-5b71-46ab-88be-997b27927269"; } + ]; networking = { - defaultGateway = "80.244.242.1"; - + defaultGateway = { + address = "80.244.242.1"; + interface = "enp1s0"; + }; nameservers = ["95.129.51.51" "80.244.244.244"]; - - interfaces."enp1s0" = { + interfaces.enp1s0 = { + useDHCP = false; ipv4.addresses = [ - { - address = "80.244.242.4"; - prefixLength = 29; - } + { address = "80.244.242.4"; prefixLength = 29; } ]; }; };