1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

wezterm: remove with lib

This commit is contained in:
Austin Horstman 2025-01-30 13:48:08 -06:00
parent 20fd9686b8
commit 2d731a33b1

View file

@ -1,16 +1,15 @@
{ config, lib, pkgs, ... }:
with lib;
let
inherit (lib) literalExpression mkIf mkEnableOption mkOption types;
cfg = config.programs.wezterm;
tomlFormat = pkgs.formats.toml { };
shellIntegrationStr = ''
source "${cfg.package}/etc/profile.d/wezterm.sh"
'';
in {
meta.maintainers = [ lib.hm.maintainers.blmhemu lib.maintainers.khaneliman ];
@ -104,8 +103,8 @@ in {
${cfg.extraConfig}
'';
} // mapAttrs' (name: value:
nameValuePair "wezterm/colors/${name}.toml" {
} // lib.mapAttrs' (name: value:
lib.nameValuePair "wezterm/colors/${name}.toml" {
source = tomlFormat.generate "${name}.toml" { colors = value; };
}) cfg.colorSchemes;