nix: Prefer let-in over with

Fixes an issue where it's possible to write code that the linter thinks
is valid since with; is used.
This commit is contained in:
Donovan Glover 2024-04-04 20:05:08 -04:00
parent b46c9a05a9
commit db5b95e983
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,10 +1,11 @@
{ pkgs, config, lib, ... }:
let
inherit (lib) mkEnableOption mkIf;
inherit (lib) mkEnableOption mkIf mkMerge;
inherit (pkgs.xfce) thunar-volman exo;
inherit (pkgs) glib;
inherit (config.modules.system) username;
inherit (cfg) japanese bloat wine;
theme = "monokai";
opacity = 0.95;
@ -19,7 +20,7 @@ in
wine = mkEnableOption "wine support";
};
config = with cfg; {
config = {
hardware.opengl.driSupport32Bit = mkIf wine true;
programs = {