treewide: add and apply nixfmt pre-commit hook
Link: https://github.com/danth/stylix/pull/519
This commit is contained in:
parent
807c81894e
commit
ad64260a75
108 changed files with 3143 additions and 2371 deletions
|
|
@ -3,39 +3,43 @@
|
|||
options.stylix.targets.kmscon.enable =
|
||||
config.lib.stylix.mkEnableTarget "the kmscon virtual console" true;
|
||||
|
||||
config.services.kmscon = lib.mkIf (config.stylix.enable && config.stylix.targets.kmscon.enable) {
|
||||
fonts = [config.stylix.fonts.monospace];
|
||||
extraConfig =
|
||||
let
|
||||
formatBase = name:
|
||||
let
|
||||
getComponent = comp: config.lib.stylix.colors."${name}-rgb-${comp}";
|
||||
in
|
||||
"${getComponent "r"},${getComponent "g"},${getComponent "b"}";
|
||||
in ''
|
||||
font-size=${builtins.toString config.stylix.fonts.sizes.terminal}
|
||||
config.services.kmscon =
|
||||
lib.mkIf (config.stylix.enable && config.stylix.targets.kmscon.enable)
|
||||
{
|
||||
fonts = [ config.stylix.fonts.monospace ];
|
||||
extraConfig =
|
||||
let
|
||||
formatBase =
|
||||
name:
|
||||
let
|
||||
getComponent = comp: config.lib.stylix.colors."${name}-rgb-${comp}";
|
||||
in
|
||||
"${getComponent "r"},${getComponent "g"},${getComponent "b"}";
|
||||
in
|
||||
''
|
||||
font-size=${builtins.toString config.stylix.fonts.sizes.terminal}
|
||||
|
||||
palette=custom
|
||||
palette=custom
|
||||
|
||||
palette-black=${formatBase "base00"}
|
||||
palette-red=${formatBase "base08"}
|
||||
palette-green=${formatBase "base0B"}
|
||||
palette-yellow=${formatBase "base0A"}
|
||||
palette-blue=${formatBase "base0D"}
|
||||
palette-magenta=${formatBase "base0E"}
|
||||
palette-cyan=${formatBase "base0C"}
|
||||
palette-light-grey=${formatBase "base05"}
|
||||
palette-dark-grey=${formatBase "base03"}
|
||||
palette-light-red=${formatBase "base08"}
|
||||
palette-light-green=${formatBase "base0B"}
|
||||
palette-light-yellow=${formatBase "base0A"}
|
||||
palette-light-blue=${formatBase "base0D"}
|
||||
palette-light-magenta=${formatBase "base0E"}
|
||||
palette-light-cyan=${formatBase "base0C"}
|
||||
palette-white=${formatBase "base07"}
|
||||
palette-black=${formatBase "base00"}
|
||||
palette-red=${formatBase "base08"}
|
||||
palette-green=${formatBase "base0B"}
|
||||
palette-yellow=${formatBase "base0A"}
|
||||
palette-blue=${formatBase "base0D"}
|
||||
palette-magenta=${formatBase "base0E"}
|
||||
palette-cyan=${formatBase "base0C"}
|
||||
palette-light-grey=${formatBase "base05"}
|
||||
palette-dark-grey=${formatBase "base03"}
|
||||
palette-light-red=${formatBase "base08"}
|
||||
palette-light-green=${formatBase "base0B"}
|
||||
palette-light-yellow=${formatBase "base0A"}
|
||||
palette-light-blue=${formatBase "base0D"}
|
||||
palette-light-magenta=${formatBase "base0E"}
|
||||
palette-light-cyan=${formatBase "base0C"}
|
||||
palette-white=${formatBase "base07"}
|
||||
|
||||
palette-background=${formatBase "base00"}
|
||||
palette-foreground=${formatBase "base05"}
|
||||
'';
|
||||
};
|
||||
palette-background=${formatBase "base00"}
|
||||
palette-foreground=${formatBase "base05"}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue