mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-27 05:19:43 +01:00
Lenovo Y530-15ICH Initial Commit
This commit is contained in:
parent
b7ac0a5602
commit
68136fdd0a
2 changed files with 43 additions and 0 deletions
18
lenovo/legion/15ich/README.md
Normal file
18
lenovo/legion/15ich/README.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
## Setup at the time of testing
|
||||||
|
```
|
||||||
|
$ nix-info -m
|
||||||
|
- system: `"x86_64-linux"`
|
||||||
|
- host os: `Linux 5.15.90, NixOS, 22.11 (Raccoon), 22.11.2058.ce20e9ebe19`
|
||||||
|
- multi-user?: `yes`
|
||||||
|
- sandbox: `yes`
|
||||||
|
- version: `nix-env (Nix) 2.11.1`
|
||||||
|
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
|
||||||
|
```
|
||||||
|
```
|
||||||
|
$ lspci
|
||||||
|
...
|
||||||
|
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
|
||||||
|
...
|
||||||
|
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
|
||||||
|
...
|
||||||
|
```
|
25
lenovo/legion/15ich/default.nix
Normal file
25
lenovo/legion/15ich/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../../common/cpu/intel
|
||||||
|
../../../common/gpu/nvidia/prime.nix
|
||||||
|
../../../common/pc/laptop
|
||||||
|
../../../common/pc/laptop/ssd
|
||||||
|
../../../common/pc/laptop/hdd
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = lib.mkDefault true;
|
||||||
|
powerManagement.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.thermald.enable = lib.mkDefault true;
|
||||||
|
}
|
Loading…
Reference in a new issue