Skip to content

Commit 427956e

Browse files
authored
Merge branch 'master' into lenovo-legion-16irx8h-audio-fix
2 parents 4771157 + 9ed85f8 commit 427956e

File tree

19 files changed

+123
-77
lines changed

19 files changed

+123
-77
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ See code for all available configurations.
133133
| [Asus Zenbook Duo 14 UX481](asus/zenbook/ux481/nvidia/) | `<nixos-hardware/asus/zenbook/ux481/nvidia>` | `asus-zenbook-ux481-nvidia` |
134134
| [Asus Zenbook Flip S13 UX371](asus/zenbook/ux371/) | `<nixos-hardware/asus/zenbook/ux371>` | `asus-zenbook-ux371` |
135135
| [Asus Zenbook Pro 15 UX535](asus/zenbook/ux535/) | `<nixos-hardware/asus/zenbook/ux535>` | `asus-zenbook-ux535` |
136+
| [Asus Zenbook Pro 17 UM6702](asus/zenbook/um6702/) | `<nixos-hardware/asus/zenbook/um6702>` | `asus-zenbook-um6702` |
136137
| [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `<nixos-hardware/beagleboard/pocketbeagle>` | `beagleboard-pocketbeagle` |
137138
| [Chuwi MiniBook X](chuwi/minibook-x) | `<nixos-hardware/chuwi/minibook-x>` | `chuwi-minibook-x` |
138139
| [Deciso DEC series](deciso/dec) | `<nixos-hardware/deciso/dec>` | `deciso-dec` |
@@ -445,4 +446,3 @@ See code for all available configurations.
445446
| [TUXEDO Pulse 15 - Gen2](tuxedo/pulse/15/gen2) | `<nixos-hardware/tuxedo/pulse/15/gen2>` | `tuxedo-pulse-15-gen2` |
446447
| [Xiaomi Redmibook 15 Pro 2021](xiaomi/redmibook/15-pro-2021) | `<nixos-hardware/xiaomi/redmibook/15-pro-2021>` | `xiaomi-redmibook-15-pro-2021` |
447448
| [Xiaomi Redmibook 16 Pro 2024](xiaomi/redmibook/16-pro-2024) | `<nixos-hardware/xiaomi/redmibook/16-pro-2024>` | `xiaomi-redmibook-16-pro-2024` |
448-

asus/battery.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ in
3131
wantedBy = [
3232
"local-fs.target"
3333
"suspend.target"
34+
"suspend-then-hibernate.target"
35+
"hibernate.target"
3436
];
3537
after = [
3638
"local-fs.target"
3739
"suspend.target"
40+
"suspend-then-hibernate.target"
41+
"hibernate.target"
3842
];
3943
description = "Set the battery charge threshold to ${toString cfg.chargeUpto}%";
4044
startLimitBurst = 5;

asus/zenbook/um6702/default.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ lib, ... }:
2+
let
3+
inherit (lib) mkDefault;
4+
in
5+
{
6+
imports = [
7+
../../../common/cpu/amd
8+
../../../common/cpu/amd/pstate.nix
9+
10+
# iGPU
11+
../../../common/gpu/amd
12+
13+
# dGPU
14+
../../../common/gpu/nvidia/prime.nix
15+
../../../common/gpu/nvidia/ampere
16+
17+
../../../common/pc/laptop
18+
../../../common/pc/ssd
19+
20+
../../battery.nix
21+
];
22+
23+
hardware.nvidia = {
24+
dynamicBoost.enable = mkDefault true;
25+
26+
powerManagement = {
27+
enable = mkDefault true;
28+
finegrained = mkDefault true;
29+
};
30+
31+
prime = {
32+
amdgpuBusId = "PCI:1:0:0";
33+
nvidiaBusId = "PCI:101:0:0";
34+
};
35+
};
36+
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
asus-rog-strix-g713ie = import ./asus/rog-strix/g713ie;
5151
asus-rog-strix-g733qs = import ./asus/rog-strix/g733qs;
5252
asus-rog-strix-x570e = import ./asus/rog-strix/x570e;
53+
asus-zenbook-um6702 = import ./asus/zenbook/um6702;
5354
asus-zenbook-ux371 = import ./asus/zenbook/ux371;
5455
asus-zenbook-ux535 = import ./asus/zenbook/ux535;
5556
asus-zenbook-ux481-intelgpu = import ./asus/zenbook/ux481/intelgpu;

raspberry-pi/3/default.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
}:
66

77
{
8-
boot.kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
8+
boot = {
9+
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
10+
initrd.availableKernelModules = [
11+
"usbhid"
12+
"usb_storage"
13+
];
14+
};
915

1016
# fix the following error :
1117
# modprobe: FATAL: Module ahci not found in directory

raspberry-pi/4/audio.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ in
1111
{
1212
options.hardware = {
1313
raspberry-pi."4".audio = {
14-
enable = lib.mkEnableOption ''
15-
configuration for audio
16-
'';
14+
enable = lib.mkEnableOption "configuration for audio";
1715
};
1816
};
1917

raspberry-pi/4/backlight.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ in
66
{
77
options.hardware = {
88
raspberry-pi."4".backlight = {
9-
enable = lib.mkEnableOption ''
10-
Enable the backlight support for the Raspberry Pi official Touch Display
11-
'';
9+
enable = lib.mkEnableOption "the backlight support for the Raspberry Pi official Touch Display";
1210
};
1311
};
1412

raspberry-pi/4/bluetooth.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ in
66
{
77
options.hardware = {
88
raspberry-pi."4".bluetooth = {
9-
enable = lib.mkEnableOption ''
10-
configuration for bluetooth
11-
'';
9+
enable = lib.mkEnableOption "configuration for bluetooth";
1210
};
1311
};
1412

raspberry-pi/4/digi-amp-plus.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ in
66
{
77
options.hardware = {
88
raspberry-pi."4".digi-amp-plus = {
9-
enable = lib.mkEnableOption ''
10-
support for the IQaudIO DigiAMP+ Hat.
11-
'';
9+
enable = lib.mkEnableOption "support for the IQaudIO DigiAMP+ Hat";
1210

1311
unmuteAmp = lib.mkOption {
1412
type = lib.types.bool;
1513
default = false;
1614
description = ''
17-
"one-shot" unmute when kernel module first loads.
15+
Whether to "one-shot" unmute when kernel module first loads.
1816
'';
1917
};
2018

raspberry-pi/4/dwc2.nix

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,29 @@ in
66
{
77
options.hardware = {
88
raspberry-pi."4".dwc2 = {
9-
enable = lib.mkEnableOption ''
10-
Enable the UDC controller to support USB OTG gadget functions.
9+
enable = lib.mkOption {
10+
type = lib.types.bool;
11+
default = false;
12+
example = true;
13+
description = ''
14+
Enable the UDC controller to support USB OTG gadget functions.
1115
12-
In order to verify that this works, connect the Raspberry Pi with
13-
another computer via the USB C cable, and then do one of:
16+
In order to verify that this works, connect the Raspberry Pi with
17+
another computer via the USB C cable, and then do one of:
1418
15-
- `modprobe g_serial`
16-
- `modprobe g_mass_storage file=/path/to/some/iso-file.iso`
19+
- `modprobe g_serial`
20+
- `modprobe g_mass_storage file=/path/to/some/iso-file.iso`
1721
18-
On the Raspberry Pi, `dmesg` should then show success-indicating output
19-
that is related to the dwc2 and g_serial/g_mass_storage modules.
20-
On the other computer, a serial/mass-storage device should pop up in
21-
the system logs.
22+
On the Raspberry Pi, `dmesg` should then show success-indicating output
23+
that is related to the dwc2 and g_serial/g_mass_storage modules.
24+
On the other computer, a serial/mass-storage device should pop up in
25+
the system logs.
2226
23-
For more information about what gadget functions exist along with handy
24-
guides on how to test them, please refer to:
25-
https://www.kernel.org/doc/Documentation/usb/gadget-testing.txt
26-
'';
27+
For more information about what gadget functions exist along with handy
28+
guides on how to test them, please refer to:
29+
https://www.kernel.org/doc/Documentation/usb/gadget-testing.txt
30+
'';
31+
};
2732
dr_mode = lib.mkOption {
2833
type = lib.types.enum [
2934
"host"

0 commit comments

Comments
 (0)