mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-04-27 07:48:44 +02:00
harware/graphics: add nvidia and rename to gpu
Some checks are pending
/ Build Nix targets (push) Waiting to run
Some checks are pending
/ Build Nix targets (push) Waiting to run
This commit is contained in:
parent
2a44b8e852
commit
7909067dc7
4 changed files with 13 additions and 20 deletions
|
|
@ -2,9 +2,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cpuFlavor = "intel";
|
||||
in
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
|
|
@ -17,11 +14,11 @@ in
|
|||
};
|
||||
firmware = {
|
||||
enable = true;
|
||||
inherit cpuFlavor;
|
||||
cpuFlavor = "intel";
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
inherit cpuFlavor;
|
||||
gpuFlavor = "nvidia";
|
||||
};
|
||||
keychron.enable = true;
|
||||
yubikey.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
_:
|
||||
let
|
||||
cpuFlavor = "intel";
|
||||
in
|
||||
{
|
||||
_: {
|
||||
# video driver
|
||||
boot.initrd.kernelModules = [ "i915" ];
|
||||
|
||||
|
|
@ -20,11 +16,11 @@ in
|
|||
drive-monitor.enable = true;
|
||||
firmware = {
|
||||
enable = true;
|
||||
inherit cpuFlavor;
|
||||
cpuFlavor = "intel";
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
inherit cpuFlavor;
|
||||
gpuFlavor = "intel";
|
||||
};
|
||||
id-card.enable = true;
|
||||
keychron.enable = true;
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cpuFlavor = "amd";
|
||||
in
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
|
|
@ -30,11 +27,11 @@ in
|
|||
drive-monitor.enable = true;
|
||||
firmware = {
|
||||
enable = true;
|
||||
inherit cpuFlavor;
|
||||
cpuFlavor = "amd";
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
inherit cpuFlavor;
|
||||
gpuFlavor = "amd";
|
||||
};
|
||||
id-card.enable = true;
|
||||
keychron.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue