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,
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;