1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/yarn/example-config.nix
2025-07-23 10:42:37 -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}
'';
}