From 06a5b083493fc5490e939f6581e7d4c95ae218f6 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Sat, 8 Feb 2025 19:23:34 -0300 Subject: [PATCH] fix: new generated hardware config --- hosts/battleship/hardware-configuration.nix | 43 ++++++++++----------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/hosts/battleship/hardware-configuration.nix b/hosts/battleship/hardware-configuration.nix index 7d688c4..780a7a9 100644 --- a/hosts/battleship/hardware-configuration.nix +++ b/hosts/battleship/hardware-configuration.nix @@ -1,33 +1,32 @@ # 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 = ["xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"]; - boot.initrd.kernelModules = []; - boot.kernelModules = []; - boot.extraModulePackages = []; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/a97b3b84-be9f-4f71-9798-79ca792738fe"; - fsType = "ext4"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/586b0998-30b6-4cc8-be41-1b8b4f77b3b0"; + fsType = "ext4"; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/88AB-2855"; - fsType = "vfat"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/1D67-5492"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; - swapDevices = [{device = "/dev/disk/by-uuid/d890b8ef-5437-4ffc-9b1e-1324f623c2d1";}]; + swapDevices = + [ { device = "/dev/disk/by-uuid/3b5ff4ea-39dc-4882-ba6d-a5864fc5ec39"; } + ]; # 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