add some hardware config for Akun
This commit is contained in:
parent
39381e4298
commit
8d72964d57
3 changed files with 29 additions and 11 deletions
|
|
@ -1,5 +1,15 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports =
|
||||
(with inputs.nixos-hardware.nixosModules; [
|
||||
common-cpu-intel
|
||||
common-pc-laptop
|
||||
common-pc-laptop-ssd
|
||||
])
|
||||
++ [
|
||||
./gui.nix
|
||||
./hardware-configuration.nix
|
||||
./stylix.nix
|
||||
|
|
|
|||
|
|
@ -7,8 +7,9 @@
|
|||
}: {
|
||||
imports =
|
||||
(with inputs.nixos-hardware.nixosModules; [
|
||||
common-hidpi
|
||||
common-cpu-intel
|
||||
common-gpu-nvidia
|
||||
common-gpu-nvidia-nonprime
|
||||
common-pc-laptop
|
||||
common-pc-laptop-ssd
|
||||
asus-battery
|
||||
|
|
@ -104,6 +105,7 @@
|
|||
modesetting.enable = true;
|
||||
open = true;
|
||||
prime = {
|
||||
reverseSync.enable = lib.mkDefault true;
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{lib, ...}: let
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
extraConfig = ''
|
||||
output "DP-1" {
|
||||
mode "2560x1440@169.900"
|
||||
|
|
@ -22,7 +26,9 @@ in {
|
|||
config.specialisation.niri-hybrid = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
imports = [inputs.nixos-hardware.nixosModules.common-gpu-nvidia];
|
||||
youthlic.gui.niri.extraConfig = lib.mkForce extraConfig;
|
||||
hardware.nvidia.prime.reverseSync.enable = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue