diff --git a/hosts/hazel/default.nix b/hosts/hazel/default.nix index 03a0fad..fe687f7 100644 --- a/hosts/hazel/default.nix +++ b/hosts/hazel/default.nix @@ -42,7 +42,7 @@ boot = { loader.grub = { enable = true; - device = "/dev/sda"; + # device = "/dev/sda"; }; }; } diff --git a/hosts/hazel/hardware-configuration.nix b/hosts/hazel/hardware-configuration.nix index bfac344..37b1ec9 100644 --- a/hosts/hazel/hardware-configuration.nix +++ b/hosts/hazel/hardware-configuration.nix @@ -1,25 +1,44 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.availableKernelModules = [ + "ehci_pci" + "ahci" + "usbhid" + "sd_mod" + ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - # 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 true; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.eno2.useDHCP = lib.mkDefault true; + fileSystems."/" = { + device = "/dev/disk/by-uuid/864dfbec-81f0-460f-b970-27693a0ad0e6"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/E141-F5CE"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;