From 0f8f1a7843a7ee88ca628b745218950a0fdfbdd4 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sat, 17 Jun 2023 15:12:52 +0200 Subject: [PATCH] fix the /boot --- hosts/noctilucent/hardware-configuration.nix | 21 ++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/noctilucent/hardware-configuration.nix b/hosts/noctilucent/hardware-configuration.nix index 6679bdf..479f1f5 100644 --- a/hosts/noctilucent/hardware-configuration.nix +++ b/hosts/noctilucent/hardware-configuration.nix @@ -1,8 +1,25 @@ -{ modulesPath, ... }: +{ modulesPath, lib, ... }: { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot.loader.grub.device = "/dev/sda"; boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/627952eb-107a-43c3-8223-bfea9af92837"; + fsType = "ext4"; + }; + fileSystems."/boot" = { + device = "dev/disk/by-uuid/5CA6-CCE4"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (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..useDHCP`. + networking.useDHCP = lib.mkDefault false; + networking.interfaces.enp1s0.useDHCP = lib.mkDefault false; }