use nixos-hardware for t480
This commit is contained in:
parent
375924e903
commit
cb54acdff6
3 changed files with 13 additions and 12 deletions
12
flake.lock
12
flake.lock
|
@ -74,16 +74,16 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1623315106,
|
"lastModified": 1623489190,
|
||||||
"narHash": "sha256-a2/8mVCuZWQUIWOQGCmUvtT813ZwnL0VRdwE3VzRaLU=",
|
"narHash": "sha256-p+aJJZ2BE57+59FDjHuUzaWow1M+bZ0MZDxqeB2/TKI=",
|
||||||
"owner": "NixOS",
|
"owner": "cyplo",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "6bea9761693b5d185d34bef205edb25a8081db57",
|
"rev": "1a4ac0b996f2bd5f2fba8b94ea5d7c96d1f6e114",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "cyplo",
|
||||||
"ref": "master",
|
"ref": "add-t480",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,9 +67,9 @@
|
||||||
|
|
||||||
nixos-hardware = {
|
nixos-hardware = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "NixOS";
|
owner = "cyplo";
|
||||||
repo = "nixos-hardware";
|
repo = "nixos-hardware";
|
||||||
ref = "master";
|
ref = "add-t480";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [
|
||||||
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
"vm.swappiness" = 75;
|
"vm.swappiness" = 75;
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelModules = [ "kvm-intel" "acpi_call" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
kernelModules = [ "dm-snapshot" ];
|
kernelModules = [ "dm-snapshot" ];
|
||||||
|
|
Loading…
Reference in a new issue