Marid: update hardware configuration

This commit is contained in:
Kevin Baensch 2025-07-17 17:01:08 +02:00
parent 18ff706247
commit 019894965a
Signed by: derped
SSH key fingerprint: SHA256:8/FSu/lmp3c1Z17Gml06JRIEHtDjhwdd7g6pBaHQWBc

View file

@ -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, config,
lib, lib,
pkgs,
modulesPath, modulesPath,
nixos-hardware, nixos-hardware,
... ...
@ -12,7 +10,7 @@
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
nixos-hardware.nixosModules.lenovo-thinkpad-t14 nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen4
]; ];
console.keyMap = "de"; console.keyMap = "de";
@ -30,8 +28,8 @@
kernelModules = [ ]; kernelModules = [ ];
}; };
supportedFilesystems = [ "btrfs" ]; supportedFilesystems = [ "btrfs" ];
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
@ -45,7 +43,7 @@
fsType = "tmpfs"; fsType = "tmpfs";
options = [ options = [
"defaults" "defaults"
"size=8G" "size=1G"
"mode=755" "mode=755"
]; ];
}; };
@ -65,7 +63,7 @@
options = [ options = [
"subvol=persist" "subvol=persist"
"noatime" "noatime"
"compress=zstd" "compress=zstd:6"
]; ];
neededForBoot = true; neededForBoot = true;
}; };
@ -75,7 +73,7 @@
options = [ options = [
"subvol=nix" "subvol=nix"
"noatime" "noatime"
"compress=zstd" "compress=zstd:6"
]; ];
neededForBoot = true; neededForBoot = true;
}; };
@ -85,7 +83,7 @@
options = [ options = [
"subvol=snapshots" "subvol=snapshots"
"noatime" "noatime"
"compress=zstd" "compress=zstd:6"
]; ];
neededForBoot = false; neededForBoot = false;
}; };
@ -116,7 +114,10 @@
# networking.useDHCP = lib.mkDefault true; # networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 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 = { time = {
timeZone = "Europe/Berlin"; timeZone = "Europe/Berlin";
hardwareClockInLocalTime = true; hardwareClockInLocalTime = true;