mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
vivid: replace theme content from yaml with json
This should fix missinterpretation of hex colors (which should be a string) as numbers in scientific notation. For example: 1e2030.
This commit is contained in:
committed by
Austin Horstman
parent
c23379a330
commit
740134d4af
@@ -138,7 +138,7 @@ in
|
||||
// (lib.mapAttrs' (
|
||||
name: value:
|
||||
lib.nameValuePair "vivid/themes/${name}.yml" {
|
||||
source = if lib.isAttrs value then yamlFormat.generate "${name}.yml" value else value;
|
||||
source = if lib.isAttrs value then pkgs.writeText "${name}.json" (builtins.toJSON value) else value;
|
||||
}
|
||||
) cfg.themes);
|
||||
|
||||
|
||||
@@ -1,9 +1 @@
|
||||
colors:
|
||||
primary: 00aaff
|
||||
secondary: ff00aa
|
||||
core:
|
||||
directory:
|
||||
foreground: primary
|
||||
executable-file:
|
||||
font-style: bold
|
||||
foreground: secondary
|
||||
{"colors":{"primary":"00aaff","secondary":"ff00aa"},"core":{"directory":{"foreground":"primary"},"executable-file":{"font-style":"bold","foreground":"secondary"}}}
|
||||
Reference in New Issue
Block a user