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,
|
config,
|
||||||
pkgs,
|
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 = {
|
boot = {
|
||||||
loader.systemd-boot = {
|
loader.systemd-boot = {
|
||||||
|
@ -34,16 +36,10 @@ in
|
||||||
luks.devices."btrfs-crypt".device = "/dev/disk/by-uuid/10435741-b864-453d-ab18-4dc710db1378";
|
luks.devices."btrfs-crypt".device = "/dev/disk/by-uuid/10435741-b864-453d-ab18-4dc710db1378";
|
||||||
};
|
};
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"acpi_call"
|
|
||||||
"i915"
|
"i915"
|
||||||
"kvm-intel"
|
"kvm-intel"
|
||||||
"uinput"
|
"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" ];
|
kernelParams = [ "intel_iommu=on" ];
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
options i915 enable_fbc=1 enable_guc=3
|
options i915 enable_fbc=1 enable_guc=3
|
||||||
|
@ -61,7 +57,7 @@ in
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
options = [
|
options = [
|
||||||
"defaults"
|
"defaults"
|
||||||
"size=6G"
|
"size=1G"
|
||||||
"mode=755"
|
"mode=755"
|
||||||
"noexec"
|
"noexec"
|
||||||
];
|
];
|
||||||
|
@ -123,12 +119,6 @@ in
|
||||||
cpu.intel.updateMicrocode = true;
|
cpu.intel.updateMicrocode = true;
|
||||||
enableAllFirmware = false;
|
enableAllFirmware = false;
|
||||||
ksm.enable = true;
|
ksm.enable = true;
|
||||||
graphics = {
|
|
||||||
extraPackages = with pkgs; [ (intel-vaapi-driver.override { enableHybridCodec = true; }) ];
|
|
||||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
|
||||||
(intel-vaapi-driver.override { enableHybridCodec = true; })
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue