Added nvidia.nix

This commit is contained in:
2024-09-06 19:44:05 +02:00
parent f676928197
commit ef3c24b031
2 changed files with 20 additions and 16 deletions

View File

@@ -1,9 +1,10 @@
{ config, pkgs, stylix, ... }:
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./modules/nvidia.nix
./modules/services.nix
./modules/styling.nix
];
@@ -35,21 +36,6 @@
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
hardware.nvidia = {
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;
open = true;
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
time.timeZone = "Europe/Rome";
# Select internationalisation properties.
@@ -102,6 +88,7 @@
tree
unzip
wget
wl-clipboard
zip
zoxide
zulu