add some hardware config for Akun

This commit is contained in:
ulic-youthlic 2025-05-10 20:48:54 +08:00
parent 39381e4298
commit 8d72964d57
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 29 additions and 11 deletions

View file

@ -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

View file

@ -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";
};

View file

@ -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;
};
};
}