From 019894965a74b4c207ed0e856a543fde2be9af6a Mon Sep 17 00:00:00 2001 From: derped Date: Thu, 17 Jul 2025 17:01:08 +0200 Subject: [PATCH] Marid: update hardware configuration --- machines/Marid/hardware-configuration.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/machines/Marid/hardware-configuration.nix b/machines/Marid/hardware-configuration.nix index 2efcbbf..881b214 100644 --- a/machines/Marid/hardware-configuration.nix +++ b/machines/Marid/hardware-configuration.nix @@ -1,9 +1,7 @@ -# 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, nixos-hardware, ... @@ -12,7 +10,7 @@ { imports = [ (modulesPath + "/installer/scan/not-detected.nix") - nixos-hardware.nixosModules.lenovo-thinkpad-t14 + nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen4 ]; console.keyMap = "de"; @@ -30,8 +28,8 @@ kernelModules = [ ]; }; supportedFilesystems = [ "btrfs" ]; + kernelPackages = pkgs.linuxPackages_latest; kernelModules = [ "kvm-amd" ]; - extraModulePackages = [ ]; loader = { systemd-boot.enable = true; @@ -45,7 +43,7 @@ fsType = "tmpfs"; options = [ "defaults" - "size=8G" + "size=1G" "mode=755" ]; }; @@ -65,7 +63,7 @@ options = [ "subvol=persist" "noatime" - "compress=zstd" + "compress=zstd:6" ]; neededForBoot = true; }; @@ -75,7 +73,7 @@ options = [ "subvol=nix" "noatime" - "compress=zstd" + "compress=zstd:6" ]; neededForBoot = true; }; @@ -85,7 +83,7 @@ options = [ "subvol=snapshots" "noatime" - "compress=zstd" + "compress=zstd:6" ]; neededForBoot = false; }; @@ -116,7 +114,10 @@ # networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware = { + cpu.amd.updateMicrocode = true; + bluetooth.enable = true; + }; time = { timeZone = "Europe/Berlin"; hardwareClockInLocalTime = true;