diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-02 10:48:21 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-02 10:48:21 -0400 |
| commit | 31c316d19cd974bb81a5d6de62142ff24db1c78e (patch) | |
| tree | cb941422c76cb8953830a8d58c8e14dca1a10319 /home-manager/modules/aesthetics/targets/helix.nix | |
| parent | 1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff) | |
reorganized directory structure
Diffstat (limited to 'home-manager/modules/aesthetics/targets/helix.nix')
| -rw-r--r-- | home-manager/modules/aesthetics/targets/helix.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/home-manager/modules/aesthetics/targets/helix.nix b/home-manager/modules/aesthetics/targets/helix.nix new file mode 100644 index 0000000..dde557e --- /dev/null +++ b/home-manager/modules/aesthetics/targets/helix.nix @@ -0,0 +1,28 @@ +{ config, lib, ... }: let + cfg = config.aesthetics.targets.helix; + aes = config.aesthetics; +in { + options.aesthetics.targets.helix = { + enable = lib.mkOption { + type = lib.types.bool; + default = aes.enableAllTargets; + description = "Whether to enable the aesthetics helix target."; + }; + theme = lib.mkOption { + type = lib.types.str; + default = "default"; + description = "The name of the theme to use for helix."; + }; + }; + config = lib.mkIf (cfg.enable && config.programs.helix.enable) { + programs.helix.settings.theme = "custom-default"; + home.file."helix-theme" = { + target = ".config/helix/themes/custom-default.toml"; + text = /*toml*/ '' + inherits = "${cfg.theme}" + "ui.background" = { } + "ui.statusline" = { bg = "" } + ''; + }; + }; +} |
