From c10bb47e1530a7adcddda9a92cd62c9cfc04e1d1 Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Thu, 5 Oct 2023 23:48:06 +0200 Subject: [PATCH] Update to latest nixos-hardware version --- hosts/surfplace/hardware-configuration.nix | 50 ++++++++++++---------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/hosts/surfplace/hardware-configuration.nix b/hosts/surfplace/hardware-configuration.nix index f4dd05c7..b1e57e20 100644 --- a/hosts/surfplace/hardware-configuration.nix +++ b/hosts/surfplace/hardware-configuration.nix @@ -1,40 +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, ... }: - { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.extraModulePackages = [ config.boot.kernelPackages.rtl88x2bu ]; + boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"]; + boot.extraModulePackages = [config.boot.kernelPackages.rtl88x2bu]; - fileSystems."/" = - { device = "/dev/disk/by-label/root"; - fsType = "ext4"; - encrypted = { - enable = true; - label = "cryptroot"; - blkDev = "/dev/disk/by-uuid/77829967-0c52-4a52-a65c-cfc093d18776"; - }; + microsoft-surface.kernelVersion = "6.1.18"; + + fileSystems."/" = { + device = "/dev/disk/by-label/root"; + fsType = "ext4"; + encrypted = { + enable = true; + label = "cryptroot"; + blkDev = "/dev/disk/by-uuid/77829967-0c52-4a52-a65c-cfc093d18776"; }; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/2697-F70A"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/2697-F70A"; + fsType = "vfat"; + }; - swapDevices = - [ { device = "/dev/disk/by-label/swap"; } + swapDevices = [ + {device = "/dev/disk/by-label/swap";} ]; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - hardware.video.hidpi.enable = lib.mkDefault true; systemd.services."iptsd" = { serviceConfig = {