52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
# 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")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/c772918e-3832-45ae-8c97-05b3d837ed8b";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-3b194756-e29b-425a-b088-0a0468840011".device = "/dev/disk/by-uuid/3b194756-e29b-425a-b088-0a0468840011";
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/5DF2-A721";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||
|
||
#boot.blacklistedKernelModules = [ "acpi-cpufreq" ];
|
||
boot.kernelParams = [
|
||
"amd_pstate=active"
|
||
];
|
||
#services.auto-epp.enable = true;
|
||
|
||
powerManagement.enable = true;
|
||
powerManagement.powertop.enable = true;
|
||
services.tlp = {
|
||
enable = true;
|
||
settings = {
|
||
TLP_DEFAULT_MODE = "BAT";
|
||
TLP_PERSISTENT_DEFAULT = 1;
|
||
};
|
||
};
|
||
}
|