From d9b750032446789024f75ed78264e5db47a77065 Mon Sep 17 00:00:00 2001 From: work Date: Fri, 30 Aug 2024 09:58:05 +0200 Subject: [PATCH] get fully rid of `with` from work config --- hosts/work/configuration.nix | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/hosts/work/configuration.nix b/hosts/work/configuration.nix index 6e0e344..2ae66ed 100644 --- a/hosts/work/configuration.nix +++ b/hosts/work/configuration.nix @@ -5,6 +5,7 @@ pkgs, ... }: let + inherit (lib.attrsets) attrValues; inherit (lib.meta) getExe; inherit (config.poz.other.system) username; @@ -55,17 +56,21 @@ in { graphics = { enable = true; enable32Bit = true; - extraPackages = with pkgs; [ - mesa - libdrm - libva - vaapiVdpau - libvdpau-va-gl - ]; - extraPackages32 = with pkgs; [ - driversi686Linux.mesa - driversi686Linux.libvdpau-va-gl - ]; + extraPackages = attrValues { + inherit (pkgs) + mesa + libdrm + libva + vaapiVdpau + libvdpau-va-gl + ; + }; + extraPackages32 = attrValues { + inherit (pkgs.driversi686Linux) + mesa + libvdpau-va-gl + ; + }; }; }; @@ -100,9 +105,7 @@ in { }; services.udev = { - packages = with pkgs; [ - yubikey-personalization - ]; + packages = [ pkgs.yubikey-personalization ]; }; networking.proxy = { @@ -111,7 +114,7 @@ in { services.xserver.videoDrivers = [ "displaylink" "modesetting" ]; boot = { - extraModulePackages = with config.boot.kernelPackages; [ evdi ]; + extraModulePackages = [ config.boot.kernelPackages.evdi ]; kernelModules = [ "evdi" ]; };