diff --git a/flake.lock b/flake.lock index 0fe1a96..214059b 100644 --- a/flake.lock +++ b/flake.lock @@ -319,6 +319,22 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1680070330, + "narHash": "sha256-aoT2YZCd9LEtiEULFLIF0ykKydgE72X8gw/k9/pRS5I=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "a6aa8174fa61e55bd7e62d35464d3092aefe0421", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1677676435, @@ -469,6 +485,7 @@ "hyprland": "hyprland", "libre-presenter": "libre-presenter", "nix-bitcoin": "nix-bitcoin", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_5", "nixpkgs-stable": "nixpkgs-stable", "simple-nixos-mailserver": "simple-nixos-mailserver" diff --git a/flake.nix b/flake.nix index c2763c9..a6b626e 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-22.11"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; @@ -30,7 +31,7 @@ }; }; - outputs = { nixpkgs, nixpkgs-stable, home-manager, hyprland, emacs, nix-bitcoin, libre-presenter, ... }: + outputs = { nixpkgs, nixpkgs-stable, home-manager, hyprland, nixos-hardware, emacs, nix-bitcoin, libre-presenter, ... }: let system = "x86_64-linux"; username = "chris"; @@ -102,6 +103,7 @@ ./system/kaladin/configuration.nix home-manager.nixosModules.home-manager hyprland.nixosModules.default + nixos-hardware.nixosModules.common-gpu-amd { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index 6bc45a0..beaf4fc 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -17,7 +17,7 @@ networking.interfaces.wlp7s0.useDHCP = true; # NVIDIA - services.xserver.videoDrivers = [ "nvidia" ]; + # services.xserver.videoDrivers = [ "nvidia" ]; hardware = { opengl = { enable = true; @@ -26,18 +26,18 @@ libvdpau-va-gl ]; }; - nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.beta; - modesetting.enable = true; - powerManagement.enable = true; - }; + # nvidia = { + # package = config.boot.kernelPackages.nvidiaPackages.beta; + # modesetting.enable = true; + # powerManagement.enable = true; + # }; }; - services.xserver.screenSection = '' - Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}" - Option "AllowIndirectGLXProtocol" "off" - Option "TripleBuffer" "on" - ''; + # services.xserver.screenSection = '' + # Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}" + # Option "AllowIndirectGLXProtocol" "off" + # Option "TripleBuffer" "on" + # ''; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.chris = {