2.home-manager/tests/modules/programs/yarn/example-config.nix
home-manager-ci[bot] 7b5a978e00
yarn: add module (#7526) (#7529)
(cherry picked from commit e9c599e40c)

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Co-authored-by: Friedrich Altheide <11352905+FriedrichAltheide@users.noreply.github.com>
2025-07-23 11:30:31 -05:00

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}
'';
}