Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TUXEDO Pulse 15 - Gen2: init #755

Merged
merged 13 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ pine64/star64 @fgaz
purism/librem/13v3 @yegortimoshenko
system76/darp6 @khumba
framework @emiller88
tuxedo/pulse/15/gen2 @trueNAHO
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@ See code for all available configurations.
| [System76 Darter Pro 6](system76/darp6) | `<nixos-hardware/system76/darp6>` |
| [Toshiba Chromebook 2 `swanky`](toshiba/swanky) | `<nixos-hardware/toshiba/swanky>` |
| [Tuxedo InfinityBook v4](tuxedo/infinitybook/v4) | `<nixos-hardware/tuxedo/infinitybook/v4>` |
| [TUXEDO Pulse 15 - Gen2](tuxedo/pulse/15/gen2) | `<nixos-hardware/tuxedo/pulse/15/gen2>` |
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
system76-darp6 = import ./system76/darp6;
toshiba-swanky = import ./toshiba/swanky;
tuxedo-infinitybook-v4 = import ./tuxedo/infinitybook/v4;
tuxedo-pulse-15-gen2 = import ./tuxedo/pulse/15/gen2;

common-cpu-amd = import ./common/cpu/amd;
common-cpu-amd-pstate = import ./common/cpu/amd/pstate.nix;
Expand Down
7 changes: 7 additions & 0 deletions tuxedo/pulse/15/gen2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# TUXEDO Pulse 15 - Gen2

## About

[NixOS hardware configuration](https://github.com/NixOS/nixos-hardware) for
[TUXEDO Pulse 15 -
Gen2](https://www.tuxedocomputers.com/en/TUXEDO-Pulse-15-Gen2.tuxedo).
22 changes: 22 additions & 0 deletions tuxedo/pulse/15/gen2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
lib,
pkgs,
...
}: {
imports = [
../../../../common/cpu/amd
../../../../common/gpu/amd
../../../../common/pc/laptop/ssd
];

hardware.amdgpu.loadInInitrd = lib.mkDefault false;
trueNAHO marked this conversation as resolved.
Show resolved Hide resolved

services.udev.extraRules = builtins.concatStringsSep "\n" (
["# Properly suspend the system."]
++ (
map
(device: "SUBSYSTEM==\"pci\", ACTION==\"add\", ATTR{vendor}==\"0x144d\", ATTR{device}==\"${device}\", RUN+=\"${pkgs.bash}/bin/sh -c '${pkgs.coreutils}/bin/echo 0 | ${pkgs.coreutils}/bin/tee /sys/bus/pci/devices/$kernel/d3cold_allowed'\"")
trueNAHO marked this conversation as resolved.
Show resolved Hide resolved
["0xa80a" "0xa808"]
)
);
}