Skip to content

Commit

Permalink
work: test netrc feature e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
colemickens committed Dec 16, 2024
1 parent d430a96 commit ce9dc66
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hosts/ds-ws-colemickens/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ in
../../profiles/interactive.nix
../../profiles/addon-clouddev.nix
../../profiles/addon-devtools.nix

./work-test-netrc.nix
];

config = {
Expand Down
23 changes: 23 additions & 0 deletions hosts/ds-ws-colemickens/work-test-netrc.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ pkgs, config, lib, ... }:

{
environment.etc."determinate/corporate-netrc" = {
text = ''
machine nixcache.example.com
login user
password mypassword
'';
# this forces the file to be copied, rather than be a symlink to store path
mode = "0666";
};

environment.etc."determinate/config.json".text = ''
{
"authentication": {
"additionalNetrcSources": [
"/etc/${config.environment.etc."determinate/corporate-netrc".target}"
]
}
}
'';
}

0 comments on commit ce9dc66

Please sign in to comment.