diff --git a/nixos/modules/hardware/system-76.nix b/nixos/modules/hardware/system-76.nix index 3a50c5aa0f0c..d4896541dbae 100644 --- a/nixos/modules/hardware/system-76.nix +++ b/nixos/modules/hardware/system-76.nix @@ -35,7 +35,7 @@ let }; }; - power-pkg = pkgs.system76-power; + power-pkg = config.boot.kernelPackages.system76-power; powerConfig = mkIf cfg.power-daemon.enable { # Make system76-power usable by root from the command line. environment.systemPackages = [ power-pkg ];