Update to 23.05 - graystripe

This commit is contained in:
Aode 2023-05-25 11:37:32 -05:00
parent 5b2d44605a
commit b9d07cb7e0
5 changed files with 15 additions and 8 deletions

View file

@ -2,16 +2,16 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1684580438,
"narHash": "sha256-LUPswmDn6fXP3lEBJFA2Id8PkcYDgzUilevWackYVvQ=",
"lastModified": 1684922889,
"narHash": "sha256-l0WZAmln8959O7RdYUJ3gnAIM9OPKFLKHKGX4q+Blrk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7dc71aef32e8faf065cb171700792cf8a65c152d",
"rev": "04aaf8511678a0d0f347fdf1e8072fe01e4a509e",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-22.11",
"ref": "nixos-23.05",
"type": "indirect"
}
},

View file

@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
nixpkgs.url = "nixpkgs/nixos-23.05";
};
outputs = { self, nixpkgs, ... }@attrs: {

View file

@ -17,9 +17,18 @@ let
nvidia = ({ side, busID }: {
system.nixos.tags = [ "eGPU" side ];
# Disable intel graphics
boot.kernelParams = [ "module_blacklist=i915" ];
# Set X11 to use Nvidia drivers
services.xserver.videoDrivers = [ "nvidia" ];
# Wayland stuff maybe
hardware.nvidia.modesetting.enable = true;
# 32bit
hardware.opengl.driSupport32Bit = true;
hardware.opengl.enable = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
services.xserver.config = pkgs.lib.mkOverride 0 (lib.strings.concatStringsSep "\n\n" [

View file

@ -63,6 +63,4 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
# Allow unfree packages