(cherry picked from commit e9c599e40c)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Co-authored-by: Friedrich Altheide <11352905+FriedrichAltheide@users.noreply.github.com>
20 lines
376 B
Nix
20 lines
376 B
Nix
{
|
|
programs.yarn = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
httpProxy = "http://proxy.example.org:3128";
|
|
httpsProxy = "http://proxy.example.org:3128";
|
|
};
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
configPath = "home-files/.yarnrc.yml";
|
|
in
|
|
''
|
|
assertFileExists ${configPath}
|
|
assertFileContent ${configPath} \
|
|
${./example-config.yml}
|
|
'';
|
|
}
|