diff options
author | ene <ene@sils.com> | 2023-04-03 15:11:11 +0200 |
---|---|---|
committer | ene <ene@sils.com> | 2023-04-03 15:12:06 +0200 |
commit | 4ce41b607c1c9ab42c7e23556a035c8525f11efb (patch) | |
tree | 39ac1c3da218b65caeba4f9975fe93d9b5c5b664 | |
parent | Chore(Flake): Update (diff) | |
download | nixos-config-4ce41b607c1c9ab42c7e23556a035c8525f11efb.tar.gz nixos-config-4ce41b607c1c9ab42c7e23556a035c8525f11efb.zip |
Feat(system/hardware): Add onlykey support
-rw-r--r-- | system/default.nix | 2 | ||||
-rw-r--r-- | system/graphics/default.nix | 18 | ||||
-rw-r--r-- | system/hardware/default.nix | 21 |
3 files changed, 22 insertions, 19 deletions
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 + |