diff --git a/hardware/sigmachine.nix b/hardware/sigmachine.nix index c1b9835..520ea51 100644 --- a/hardware/sigmachine.nix +++ b/hardware/sigmachine.nix @@ -1,51 +1,40 @@ -{ config, lib, modulesPath, ... }: -{ - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot = { - initrd = { - kernelModules = [ ]; - availableKernelModules = [ - "xhci_pci" - "ahci" - "nvme" - "usbhid" - "usb_storage" - "sd_mod" - ]; - }; +# 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, ... }: - extraModulePackages = [ ]; - kernelModules = [ "kvm-intel" ]; - }; +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/2c4e0428-4dbb-4e7d-a2ba-27dfc7f72762"; - fsType = "ext4"; - }; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; - "/data" = { - device = "/dev/disk/by-uuid/58799c4d-2c8c-4f26-8ee4-1c8ceb796705"; + fileSystems."/" = + { device = "/dev/disk/by-uuid/b22002e7-3ba0-4e5d-a643-d4ad8fb73505"; fsType = "ext4"; }; - "/boot" = { - device = "/dev/disk/by-uuid/6838-4F6B"; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/B255-6CC2"; fsType = "vfat"; }; - }; - swapDevices = [ - { device = "/dev/disk/by-uuid/41b9c6d5-5ac9-4549-b510-8249ec7c3be8"; } - ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/c797aedc-1bdb-4f86-bc35-ad5a9688e057"; } + ]; + # 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; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; - hardware.cpu.intel.updateMicrocode = - lib.mkDefault config.hardware.enableRedistributableFirmware; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }