Modify like, basically everything idk, probably a lot of secrets and url names and colmena and whatnot
This commit is contained in:
parent
0ab856b18e
commit
b3ba7481d8
107 changed files with 437 additions and 696 deletions
6
modules/system/devices/video/amd/default.nix
Normal file
6
modules/system/devices/video/amd/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
boot.kernelParams = [ "amd_pstate=active" ];
|
||||
|
||||
hardware.amdgpu.legacySupport.enable = true;
|
||||
}
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./nvidia ];
|
||||
imports = [
|
||||
./amd
|
||||
./nvidia
|
||||
];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = builtins.elem "pc" config.system.nixos.tags;
|
||||
|
|
|
@ -8,10 +8,14 @@
|
|||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = false;
|
||||
open = true;
|
||||
open = if lib.versionOlder config.hardware.nvidia.package.version "560" then false else true;
|
||||
powerManagement.enable = config.hardware.nvidia.open;
|
||||
};
|
||||
|
||||
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
|
||||
nixpkgs = {
|
||||
allowUnfreePackages = [ "nvidia-x11" ];
|
||||
config.nvidia.acceptLicense = true;
|
||||
};
|
||||
|
||||
specialisation = lib.mkIf (lib.elem "nvidia" config.services.xserver.videoDrivers) {
|
||||
nouveau.configuration.config.services.xserver.videoDrivers = lib.mkForce [ "nouveau" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue