mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-04-17 15:58:29 +02:00
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:
parent
b46c9a05a9
commit
db5b95e983
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user