Skip to content

Commit 380ed15

Browse files
leana8959mergify[bot]
authored andcommitted
framework: fix TRRS headphones modprobe
1 parent daaae13 commit 380ed15

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

framework/13-inch/common/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{ lib, pkgs, ... }: {
1+
{ lib, config, ... }:
2+
{
23
imports = [
34
../../../common/pc/laptop
45
../../../common/pc/laptop/ssd
@@ -10,7 +11,7 @@
1011

1112
# Fix TRRS headphones missing a mic
1213
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
13-
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.8") ''
14+
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.6.8") ''
1415
options snd-hda-intel model=dell-headset-multi
1516
'';
1617

framework/16-inch/common/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{ lib, pkgs, ... }: {
1+
{ lib, config, ... }:
2+
{
23
imports = [
34
../../../common/pc/laptop
45
../../../common/pc/laptop/ssd
@@ -9,7 +10,7 @@
910

1011
# Fix TRRS headphones missing a mic
1112
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
12-
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.8") ''
13+
boot.extraModprobeConfig = lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.6.8") ''
1314
options snd-hda-intel model=dell-headset-multi
1415
'';
1516

0 commit comments

Comments
 (0)