mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 22:13:29 +01:00
Add support for System76 hardware, specifically the Darter Pro 6.
This relies on new `system76`, `system76-acpi`, and `system76-io` packages in `linuxPackages` in Nixpkgs.
This commit is contained in:
5 files changed
+56
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# Implementation of support for general System76 hardware.
|
||||
#
|
||||
# https://system76.com/
|
||||
|
||||
{ config, ... }:
|
||||
let
|
||||
# Try loading all system76 modules. The ones not relevant to specific
|
||||
# hardware won't be loaded.
|
||||
packages = with config.boot.kernelPackages; [ system76 system76-acpi system76-io ];
|
||||
in
|
||||
{
|
||||
imports = [ ../common/pc ];
|
||||
|
||||
# This seems to be required for system76-driver.
|
||||
boot.kernelParams = [ "ec_sys.write_support=1" ];
|
||||
|
||||
boot.extraModulePackages = packages;
|
||||
|
||||
# Explicitly attempt to load all available system76 modules. Some do
|
||||
# (system76-acpi), some don't (system76-io).
|
||||
boot.kernelModules = map (drv: drv.moduleName) packages;
|
||||
}
|
||||
Reference in new issue
Block a user