54 lines
2.3 KiB
Nix
54 lines
2.3 KiB
Nix
{
|
|
inputs,
|
|
nixpkgs,
|
|
...
|
|
}:
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
{
|
|
nixpkgs.overlays = [];
|
|
_module.args = {
|
|
inherit inputs;
|
|
};
|
|
}
|
|
|
|
({ config, pkgs, lib, ... }: {
|
|
# ─────────────────────────────────────────────────────────────
|
|
# Intel Microcode
|
|
# ─────────────────────────────────────────────────────────────
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
# ─────────────────────────────────────────────────────────────
|
|
# Hardware accelaration
|
|
# ─────────────────────────────────────────────────────────────
|
|
hardware.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
|
|
# ─────────────────────────────────────────────────────────────
|
|
# Power management
|
|
# ─────────────────────────────────────────────────────────────
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
services.tlp.enable = true;
|
|
services.power-profiles-daemon.enable = false;
|
|
|
|
# ─────────────────────────────────────────────────────────────
|
|
# Kernel modules commonly needed on ThinkPads
|
|
# ─────────────────────────────────────────────────────────────
|
|
boot.kernelModules = [
|
|
"i915"
|
|
"snd_hda_intel"
|
|
"iwlwifi"
|
|
];
|
|
})
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
inputs.stylix.nixosModules.stylix
|
|
inputs.nix-index-database.nixosModules.default
|
|
|
|
./configuration.nix
|
|
];
|
|
}
|