refactor: limit use of with lib

This commit is contained in:
matt1432 2024-01-22 11:09:37 -05:00
parent 7fd12f5b04
commit 20dac8791e
16 changed files with 74 additions and 50 deletions
modules

View file

@ -3,8 +3,8 @@
pkgs,
config,
...
}:
with lib; let
}: let
inherit (lib) getExe optionals readFile;
inherit (config.vars) mainUser greetdDupe mainMonitor;
# Nix stuff

View file

@ -5,10 +5,10 @@
pkgs,
lib,
...
}:
with lib; let
# Config stuff
}: let
inherit (lib) concatStringsSep optionals;
inherit (config.vars) configDir mainUser mainMonitor;
isNvidia = config.hardware.nvidia.modesetting.enable;
isTouchscreen = config.hardware.sensor.iio.enable;
in {