Skip to content

Commit 316a5b9

Browse files
init
1 parent bffe23e commit 316a5b9

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ See code for all available configurations.
109109
| [Asus ROG Ally RC71L (2023)](asus/ally/rc71l) | `<nixos-hardware/asus/ally/rc71l>` | `asus-ally-rc71l` |
110110
| [Asus ROG Flow X13 GV302X\* (2023)](asus/flow/gv302x/amdgpu) | `<nixos-hardware/asus/flow/gv302x/amdgpu>` | `asus-flow-gv302x-amdgpu` |
111111
| [Asus ROG Flow X13 GV302X\* (2023)](asus/flow/gv302x/nvidia) | `<nixos-hardware/asus/flow/gv302x/nvidia>` | `asus-flow-gv302x-nvidia` |
112+
| [Asus ROG Flow Z13 gz301vu\* (2023)](asus/flow/gz301vu) | `<nixos-hardware/asus/flow/gz301vu>` | `asus-flow-gz301vu` |
112113
| [Asus ROG GL552VW](asus/rog-gl552vw) | `<nixos-hardware/asus/rog-gl552vw>` | `asus-rog-gl552vw` |
113114
| [Asus ROG Strix G513IM](asus/rog-strix/g513im) | `<nixos-hardware/asus/rog-strix/g513im>` | `asus-rog-strix-g513im` |
114115
| [Asus ROG Strix G533ZW](asus/rog-strix/g533zw) | `<nixos-hardware/asus/rog-strix/g533zw>` | `asus-rog-strix-g533zw` |

asus/flow/gz301vu/default.nix

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
config,
3+
pkgs,
4+
lib,
5+
...
6+
}:
7+
8+
let
9+
inherit (lib)
10+
mkDefault
11+
mkMerge
12+
;
13+
in
14+
{
15+
16+
imports = [
17+
../../../common/cpu/intel/raptor-lake
18+
../../../common/gpu/intel/raptor-lake
19+
../../../common/gpu/nvidia/ada-lovelace
20+
../../../common/gpu/nvidia/prime.nix
21+
../../../common/pc/laptop
22+
../../../common/pc/ssd
23+
];
24+
25+
config = mkMerge [
26+
{
27+
# Configure basic system settings:
28+
boot = {
29+
blacklistedKernelModules = [ "nouveau" ];
30+
kernelModules = [ "kvm-intel" ];
31+
kernelParams = [
32+
"mem_sleep_default=deep"
33+
"pcie_aspm.policy=powersupersave"
34+
];
35+
};
36+
37+
services = {
38+
asusd = {
39+
enable = mkDefault true;
40+
enableUserService = mkDefault true;
41+
};
42+
43+
supergfxd.enable = mkDefault true;
44+
45+
};
46+
47+
#flow devices are 2 in 1 laptops
48+
hardware.sensor.iio.enable = mkDefault true;
49+
50+
hardware = {
51+
52+
nvidia = {
53+
54+
modesetting.enable = true;
55+
nvidiaSettings = mkDefault true;
56+
57+
prime = {
58+
offload = {
59+
enable = mkDefault true;
60+
enableOffloadCmd = mkDefault true;
61+
};
62+
intelBusId = "PCI:0:2:0";
63+
nvidiaBusId = "PCI:1:0:0";
64+
};
65+
66+
powerManagement = {
67+
enable = mkDefault true;
68+
finegrained = mkDefault true;
69+
};
70+
71+
dynamicBoost.enable = mkDefault true;
72+
73+
};
74+
<<<<<<< HEAD
75+
<<<<<<< HEAD
76+
<<<<<<< HEAD
77+
<<<<<<< HEAD
78+
=======
79+
intelBusId = "PCI:0:2.0";
80+
nvidiaBusId = "PCI:1:0.0";
81+
>>>>>>> 59abaea (fixed leading zeros on busid)
82+
=======
83+
intelBusId = "PCI:0:2:0";
84+
nvidiaBusId = "PCI:1:0:0";
85+
>>>>>>> 47c7f7a (syntax!)
86+
=======
87+
intelBusId = "PCI:0:2:0";
88+
nvidiaBusId = "PCI:1:0:0";
89+
>>>>>>> ed24f8a (Fix PCI bus ID formatting for Intel and Nvidia)
90+
=======
91+
>>>>>>> 7506c9d (formatted with nixfmt)
92+
};
93+
94+
}
95+
];
96+
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
asus-fa507rm = import ./asus/fa507rm;
7575
asus-flow-gv302x-amdgpu = import ./asus/flow/gv302x/amdgpu;
7676
asus-flow-gv302x-nvidia = import ./asus/flow/gv302x/nvidia;
77+
asus-flow-gz301vu = import ./asus/flow/gz301vu;
7778
asus-pro-ws-x570-ace = import ./asus/pro-ws-x570-ace;
7879
asus-rog-gl552vw = import ./asus/rog-gl552vw;
7980
asus-rog-strix-g513im = import ./asus/rog-strix/g513im;

0 commit comments

Comments
 (0)