fix: nvidia hardware config
This commit is contained in:
parent
9f05c20cca
commit
9c2da1547b
5 changed files with 34 additions and 27 deletions
|
|
@ -22,15 +22,11 @@
|
|||
};
|
||||
|
||||
gtk3.extraConfig = {
|
||||
Settings = ''
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
'';
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
|
||||
gtk4.extraConfig = {
|
||||
Settings = ''
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
'';
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,17 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
vesktop = pkgs.vesktop.overrideAttrs (oldAttrs: {
|
||||
desktopItems = lib.optional pkgs.stdenv.hostPlatform.isLinux (
|
||||
(lib.head oldAttrs.desktopItems).override {
|
||||
name = "discord";
|
||||
desktopName = "Discord";
|
||||
}
|
||||
);
|
||||
});
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.vesktop # discord
|
||||
vesktop # discord
|
||||
pkgs.firefox
|
||||
|
||||
# Dev stuff
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.default
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
../../modules/nvidia.nix
|
||||
./boot.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
||||
# Overrides
|
||||
networking.hostName = "dn-pre7780";
|
||||
networking.hostName = lib.mkForce "dn-pre7780";
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
home-manager = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
nix = {
|
||||
|
|
|
|||
|
|
@ -1,24 +1,26 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
nvidia.open = false;
|
||||
nvidia.modesetting.enable = true;
|
||||
hardware = {
|
||||
nvidia.open = false;
|
||||
nvidia.modesetting.enable = true;
|
||||
|
||||
nvidia.powerManagement.enable = true;
|
||||
nvidia.powerManagement.finegrained = true;
|
||||
nvidia.powerManagement.enable = true;
|
||||
nvidia.powerManagement.finegrained = true;
|
||||
|
||||
nvidia.nvidiaSettings = true;
|
||||
nvidia.dynamicBoost.enable = true;
|
||||
nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
nvidia.nvidiaSettings = true;
|
||||
nvidia.dynamicBoost.enable = true;
|
||||
nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
|
||||
nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
# This may different between devices
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
# This may different between devices
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue