mirror of
https://github.com/nix-community/home-manager
synced 2025-02-17 05:35:06 +01:00
fixup! alacritty: add theme
option
This commit is contained in:
parent
cf5b1b8530
commit
2687f74630
1 changed files with 4 additions and 1 deletions
|
@ -77,8 +77,11 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
programs.alacritty.settings.general.import =
|
||||
mkIf (cfg.theme != null && lib.versionAtLeast cfg.package.version "0.14") [ "${pkgs.alacritty-theme}/${cfg.theme}.toml" ];
|
||||
|
||||
programs.alacritty.settings.import =
|
||||
mkIf (cfg.theme != null) [ "${pkgs.alacritty-theme}/${cfg.theme}.toml" ];
|
||||
mkIf (cfg.theme != null && lib.versionOlder cfg.package.version "0.14") [ "${pkgs.alacritty-theme}/${cfg.theme}.toml" ];
|
||||
|
||||
xdg.configFile."alacritty/alacritty.toml" = lib.mkIf (cfg.settings != { }) {
|
||||
source = (tomlFormat.generate "alacritty.toml" cfg.settings).overrideAttrs
|
||||
|
|
Loading…
Add table
Reference in a new issue