mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-05-29 14:11:05 +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, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||||
inherit (pkgs.xfce) thunar-volman exo;
|
inherit (pkgs.xfce) thunar-volman exo;
|
||||||
inherit (pkgs) glib;
|
inherit (pkgs) glib;
|
||||||
inherit (config.modules.system) username;
|
inherit (config.modules.system) username;
|
||||||
|
inherit (cfg) japanese bloat wine;
|
||||||
|
|
||||||
theme = "monokai";
|
theme = "monokai";
|
||||||
opacity = 0.95;
|
opacity = 0.95;
|
||||||
@ -19,7 +20,7 @@ in
|
|||||||
wine = mkEnableOption "wine support";
|
wine = mkEnableOption "wine support";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = with cfg; {
|
config = {
|
||||||
hardware.opengl.driSupport32Bit = mkIf wine true;
|
hardware.opengl.driSupport32Bit = mkIf wine true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user