treewide: remove with lib (#6735)

Continuation of `with lib;` cleanup.
This commit is contained in:
Austin Horstman 2025-03-31 22:32:16 -05:00 committed by GitHub
parent ccd7df836e
commit 0b491b460f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
200 changed files with 2421 additions and 2817 deletions

View file

@ -1,17 +1,14 @@
{ config, lib, pkgs, ... }:
with lib;
let
inherit (lib) mkIf mkOption types;
cfg = config.programs.eclipse;
in {
meta.maintainers = [ maintainers.rycee ];
meta.maintainers = [ lib.maintainers.rycee ];
options = {
programs.eclipse = {
enable = mkEnableOption "Eclipse";
enable = lib.mkEnableOption "Eclipse";
package = lib.mkPackageOption pkgs "eclipse" {
default = [ "eclipses" "eclipse-platform" ];
@ -46,7 +43,7 @@ in {
home.packages = [
(pkgs.eclipses.eclipseWithPlugins {
eclipse = cfg.package;
jvmArgs = cfg.jvmArgs ++ optional cfg.enableLombok
jvmArgs = cfg.jvmArgs ++ lib.optional cfg.enableLombok
"-javaagent:${pkgs.lombok}/share/java/lombok.jar";
plugins = cfg.plugins;
})