Switch to a generic configuration + integration for Thor
This commit is contained in:
parent
0426a7e93a
commit
34aefb17a1
9 changed files with 269 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = builtins.trace "Intel laptop configuration" [
|
||||
imports = [
|
||||
./base.nix
|
||||
];
|
||||
|
||||
33
nixos/thor.nix
Normal file
33
nixos/thor.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
<nixos-hardware/common/cpu/amd>
|
||||
<nixos-hardware/common/pc/ssd>
|
||||
./base.nix
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
services.xserver = {
|
||||
videoDrivers = [ "nvidia" ];
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
autoNumlock = true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload.enable = false;
|
||||
sync.enable = true;
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
# hardware.nvidia.modesetting.enable = true;
|
||||
# hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue