use nixos-hardware for t480

This commit is contained in:
Cyryl Płotnicki 2021-06-12 10:31:25 +01:00
parent 375924e903
commit cb54acdff6
3 changed files with 13 additions and 12 deletions

View file

@ -74,16 +74,16 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1623315106,
"narHash": "sha256-a2/8mVCuZWQUIWOQGCmUvtT813ZwnL0VRdwE3VzRaLU=",
"owner": "NixOS",
"lastModified": 1623489190,
"narHash": "sha256-p+aJJZ2BE57+59FDjHuUzaWow1M+bZ0MZDxqeB2/TKI=",
"owner": "cyplo",
"repo": "nixos-hardware",
"rev": "6bea9761693b5d185d34bef205edb25a8081db57",
"rev": "1a4ac0b996f2bd5f2fba8b94ea5d7c96d1f6e114",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"owner": "cyplo",
"ref": "add-t480",
"repo": "nixos-hardware",
"type": "github"
}

View file

@ -67,9 +67,9 @@
nixos-hardware = {
type = "github";
owner = "NixOS";
owner = "cyplo";
repo = "nixos-hardware";
ref = "master";
ref = "add-t480";
};
home-manager = {

View file

@ -1,15 +1,16 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = [ ];
imports = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
];
boot = {
kernel.sysctl = {
"vm.swappiness" = 75;
};
kernelModules = [ "kvm-intel" "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
kernelModules = [ "kvm-intel" ];
initrd = {
kernelModules = [ "dm-snapshot" ];