Lilim: update hardware-configuration
This commit is contained in:
parent
d72edb64d6
commit
275d77ab13
1 changed files with 8 additions and 18 deletions
|
@ -1,14 +1,16 @@
|
|||
{
|
||||
nixpkgs,
|
||||
config,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
nixos-hardware,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.machine;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [ "${nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ];
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
nixos-hardware.nixosModules.lenovo-thinkpad-t550
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader.systemd-boot = {
|
||||
|
@ -34,16 +36,10 @@ in
|
|||
luks.devices."btrfs-crypt".device = "/dev/disk/by-uuid/10435741-b864-453d-ab18-4dc710db1378";
|
||||
};
|
||||
kernelModules = [
|
||||
"acpi_call"
|
||||
"i915"
|
||||
"kvm-intel"
|
||||
"uinput"
|
||||
];
|
||||
# 5_10 breaks my touchpad/mouse buttons
|
||||
# https://bbs.archlinux.org/viewtopic.php?id=254885
|
||||
# maybe modprobe hid_rmi or i2c_i801
|
||||
# blacklistedKernelModules = [ "i2c_i801" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; # pkgs.gitpkgs.linuxPackages_latest.hid-nintendo ];
|
||||
kernelParams = [ "intel_iommu=on" ];
|
||||
extraModprobeConfig = ''
|
||||
options i915 enable_fbc=1 enable_guc=3
|
||||
|
@ -61,7 +57,7 @@ in
|
|||
fsType = "tmpfs";
|
||||
options = [
|
||||
"defaults"
|
||||
"size=6G"
|
||||
"size=1G"
|
||||
"mode=755"
|
||||
"noexec"
|
||||
];
|
||||
|
@ -123,12 +119,6 @@ in
|
|||
cpu.intel.updateMicrocode = true;
|
||||
enableAllFirmware = false;
|
||||
ksm.enable = true;
|
||||
graphics = {
|
||||
extraPackages = with pkgs; [ (intel-vaapi-driver.override { enableHybridCodec = true; }) ];
|
||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||
(intel-vaapi-driver.override { enableHybridCodec = true; })
|
||||
];
|
||||
};
|
||||
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue