mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
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}
|
|
'';
|
|
}
|