stop setting netrc-file
This commit is contained in:
parent
aa4732af7b
commit
d6d6721c16
6 changed files with 95 additions and 2 deletions
18
README.md
18
README.md
|
|
@ -58,6 +58,14 @@ netrc_path = "$XDG_CONFIG_HOME/nix/netrc"
|
|||
|
||||
Path values support environment variable expansion (`$VAR` and `${VAR}`).
|
||||
|
||||
`netrc_path` is the path this tool writes tokens to.
|
||||
|
||||
Configure Nix to read that same path.
|
||||
|
||||
This supports both cppnix and detsysnix. The latter has [special
|
||||
requirements][additionalnetrcsources] around `netrc` files, so set
|
||||
`additionalNetrcSources` to include the configured `netrc_path`.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
|
|
@ -78,6 +86,15 @@ Config path resolution order:
|
|||
The NixOS server module exports `NIX_CACHE_LOGIN_CONFIG` and installs
|
||||
`/etc/nix-cache-login/config.toml` from `services.nix-cache-login-server.configFile`.
|
||||
|
||||
## Module Integration
|
||||
|
||||
The Home Manager and NixOS modules in this repo install the package and refresh
|
||||
services.
|
||||
|
||||
Nix and detsysnix daemon configuration stays outside these modules.
|
||||
|
||||
Set your daemon to read the `netrc_path` configured in `config.toml`.
|
||||
|
||||
## Maintenance
|
||||
|
||||
This tool is actively maintained by [Guardian Project](https://guardianproject.info).
|
||||
|
|
@ -92,6 +109,7 @@ For security-related issues, please contact us through our [security policy][sec
|
|||
|
||||
[issues]: https://guardianproject.dev/ops/nix-cache-login/issues
|
||||
[sec]: https://guardianproject.info/contact/
|
||||
[additionalnetrcsources]: https://docs.determinate.systems/determinate-nix/#additionalnetrcsources
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue