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:
parent
522a21658c
commit
b12e780bb1
2 changed files with 6 additions and 10 deletions
|
@ -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;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ lib, pkgs, ... }: let
|
{ lib, pkgs, ... }: let
|
||||||
inherit (lib) getExe mkConst;
|
inherit (lib) getExe readFile;
|
||||||
|
in {
|
||||||
lsColors = pkgs.runCommand "ls_colors.txt" {} ''
|
# Yes, IFD. Deal with it.
|
||||||
|
environment.variables.LS_COLORS = readFile <|
|
||||||
|
pkgs.runCommand "ls_colors.txt" {} ''
|
||||||
${getExe pkgs.vivid} generate gruvbox-dark-hard > $out
|
${getExe pkgs.vivid} generate gruvbox-dark-hard > $out
|
||||||
'';
|
'';
|
||||||
in {
|
|
||||||
options.environment.ls-colors = mkConst lsColors;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue