diff --git a/nixos-configurations/server/hardware-configuration.nix b/nixos-configurations/server/hardware-configuration.nix index 26b6235..b418b48 100644 --- a/nixos-configurations/server/hardware-configuration.nix +++ b/nixos-configurations/server/hardware-configuration.nix @@ -5,45 +5,35 @@ { imports = - [ (modulesPath + "/profiles/qemu-guest.nix") + [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/53d4ce54-aa09-40ac-b62e-9b4cd60210ca"; - fsType = "btrfs"; - options = [ "subvol=root" ]; - }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/53d4ce54-aa09-40ac-b62e-9b4cd60210ca"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - - fileSystems."/nix" = - { device = "/dev/disk/by-uuid/53d4ce54-aa09-40ac-b62e-9b4cd60210ca"; - fsType = "btrfs"; - options = [ "subvol=nix" ]; + { device = "/dev/disk/by-uuid/b66f55f3-8a35-41a7-90b0-47001982be37"; + fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/BA60-0417"; + { device = "/dev/disk/by-uuid/0412-CCE7"; fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/101f518c-9a25-48d4-859e-216026632dbf"; } + ]; # 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.ens3.useDHCP = lib.mkDefault true; + # networking.interfaces.enp8s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }