system76: Update configs to use the module from Nixpkgs.

This commit is contained in:
Bryan Gardiner committed 2020-10-12 18:06:03 -07:00
1 parent 602f9d86c6
commit d86324ba69
2 files changed
+11 -26

No files matched your search

+2 -11
View File
@@ -2,21 +2,12 @@
#
# 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
{ config, lib, ... }:
{
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;
hardware.system76.enableAll = lib.mkDefault true;
}