1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37:44 +00:00

vivid: use ifd and apply to environment.variables

This commit is contained in:
RGBCube 2025-07-19 21:06:57 +03:00
parent 522a21658c
commit b12e780bb1
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 6 additions and 10 deletions

View file

@ -13,10 +13,6 @@ in {
configFile.text = readFile ./config.nu; configFile.text = readFile ./config.nu;
extraConfig = /* nu */ ''
$env.LS_COLORS = open ${config.environment.ls-colors}
'';
environmentVariables = let environmentVariables = let
variablesMap = { variablesMap = {
HOME = config'.home.homeDirectory; HOME = config'.home.homeDirectory;

View file

@ -1,9 +1,9 @@
{ lib, pkgs, ... }: let { lib, pkgs, ... }: let
inherit (lib) getExe mkConst; inherit (lib) getExe readFile;
lsColors = pkgs.runCommand "ls_colors.txt" {} ''
${getExe pkgs.vivid} generate gruvbox-dark-hard > $out
'';
in { in {
options.environment.ls-colors = mkConst lsColors; # Yes, IFD. Deal with it.
environment.variables.LS_COLORS = readFile <|
pkgs.runCommand "ls_colors.txt" {} ''
${getExe pkgs.vivid} generate gruvbox-dark-hard > $out
'';
} }