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
|
./gui.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@
|
||||||
}: {
|
}: {
|
||||||
imports =
|
imports =
|
||||||
(with inputs.nixos-hardware.nixosModules; [
|
(with inputs.nixos-hardware.nixosModules; [
|
||||||
|
common-hidpi
|
||||||
common-cpu-intel
|
common-cpu-intel
|
||||||
common-gpu-nvidia
|
common-gpu-nvidia-nonprime
|
||||||
common-pc-laptop
|
common-pc-laptop
|
||||||
common-pc-laptop-ssd
|
common-pc-laptop-ssd
|
||||||
asus-battery
|
asus-battery
|
||||||
|
|
@ -104,6 +105,7 @@
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = true;
|
open = true;
|
||||||
prime = {
|
prime = {
|
||||||
|
reverseSync.enable = lib.mkDefault true;
|
||||||
intelBusId = "PCI:0:2:0";
|
intelBusId = "PCI:0:2:0";
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
{lib, ...}: let
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
output "DP-1" {
|
output "DP-1" {
|
||||||
mode "2560x1440@169.900"
|
mode "2560x1440@169.900"
|
||||||
|
|
@ -22,7 +26,9 @@ in {
|
||||||
config.specialisation.niri-hybrid = {
|
config.specialisation.niri-hybrid = {
|
||||||
inheritParentConfig = true;
|
inheritParentConfig = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
|
imports = [inputs.nixos-hardware.nixosModules.common-gpu-nvidia];
|
||||||
youthlic.gui.niri.extraConfig = lib.mkForce extraConfig;
|
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