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,8 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
let
inherit (lib) mkIf;
cfg = config.programs.lazygit;
@ -14,15 +12,16 @@ in {
meta.maintainers = [ lib.hm.maintainers.kalhauge lib.maintainers.khaneliman ];
options.programs.lazygit = {
enable = mkEnableOption "lazygit, a simple terminal UI for git commands";
enable =
lib.mkEnableOption "lazygit, a simple terminal UI for git commands";
package = mkPackageOption pkgs "lazygit" { nullable = true; };
package = lib.mkPackageOption pkgs "lazygit" { nullable = true; };
settings = mkOption {
settings = lib.mkOption {
type = yamlFormat.type;
default = { };
defaultText = literalExpression "{ }";
example = literalExpression ''
defaultText = lib.literalExpression "{ }";
example = lib.literalExpression ''
{
gui.theme = {
lightTheme = true;
@ -45,7 +44,7 @@ in {
};
config = mkIf cfg.enable {
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
home.packages = mkIf (cfg.package != null) [ cfg.package ];
home.file."Library/Application Support/lazygit/config.yml" =
mkIf (cfg.settings != { } && (isDarwin && !config.xdg.enable)) {