From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- modules/user/aesthetics/targets/helix.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/user/aesthetics/targets/helix.nix (limited to 'modules/user/aesthetics/targets/helix.nix') diff --git a/modules/user/aesthetics/targets/helix.nix b/modules/user/aesthetics/targets/helix.nix new file mode 100644 index 0000000..dde557e --- /dev/null +++ b/modules/user/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 = "" } + ''; + }; + }; +} -- cgit v1.2.3