mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27: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;
|
||||
|
||||
extraConfig = /* nu */ ''
|
||||
$env.LS_COLORS = open ${config.environment.ls-colors}
|
||||
'';
|
||||
|
||||
environmentVariables = let
|
||||
variablesMap = {
|
||||
HOME = config'.home.homeDirectory;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ lib, pkgs, ... }: let
|
||||
inherit (lib) getExe mkConst;
|
||||
|
||||
lsColors = pkgs.runCommand "ls_colors.txt" {} ''
|
||||
inherit (lib) getExe readFile;
|
||||
in {
|
||||
# Yes, IFD. Deal with it.
|
||||
environment.variables.LS_COLORS = readFile <|
|
||||
pkgs.runCommand "ls_colors.txt" {} ''
|
||||
${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