From 4ce41b607c1c9ab42c7e23556a035c8525f11efb Mon Sep 17 00:00:00 2001 From: ene Date: Mon, 3 Apr 2023 15:11:11 +0200 Subject: Feat(system/hardware): Add onlykey support --- system/default.nix | 2 +- system/graphics/default.nix | 18 ------------------ system/hardware/default.nix | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 19 deletions(-) delete mode 100644 system/graphics/default.nix create mode 100644 system/hardware/default.nix (limited to 'system') diff --git a/system/default.nix b/system/default.nix index 3609dcd4..a417aecc 100644 --- a/system/default.nix +++ b/system/default.nix @@ -8,7 +8,7 @@ ./sound ./users # the position of this item is fully arbitrary ./polkit - ./graphics + ./hardware ./services ./tempfiles ]; diff --git a/system/graphics/default.nix b/system/graphics/default.nix deleted file mode 100644 index 28f958c1..00000000 --- a/system/graphics/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ - config, - pkgs, - ... -}: { - hardware.opengl = { - enable = true; - extraPackages = builtins.attrValues { - inherit - (pkgs) - vaapiVdpau - libvdpau-va-gl - ; - }; - }; -} -# vim: ts=2 - diff --git a/system/hardware/default.nix b/system/hardware/default.nix new file mode 100644 index 00000000..f41ba756 --- /dev/null +++ b/system/hardware/default.nix @@ -0,0 +1,21 @@ +{ + config, + pkgs, + ... +}: { + hardware = { + onlykey.enable = true; + opengl = { + enable = true; + extraPackages = builtins.attrValues { + inherit + (pkgs) + vaapiVdpau + libvdpau-va-gl + ; + }; + }; + }; +} +# vim: ts=2 + -- cgit 1.4.1