services.magnetico.web.credentials
The credentials to access the web interface, in case authentication is
enabled, in the format username:hash. If unset no
authentication will be required.
Usernames must start with a lowercase ([a-z]) ASCII character, might
contain non-consecutive underscores except at the end, and consists of
small-case a-z characters and digits 0-9. The
htpasswd tool from the apacheHttpd
package may be used to generate the hash:
htpasswd -bnBC 12 username password
The hashes will be stored world-readable in the nix store.
Consider using the credentialsFile option if you
don't want this.
- Type
attribute set of string- Default
{ }- Example
{ myuser = "$2y$12$YE01LZ8jrbQbx6c0s2hdZO71dSjn2p/O9XsYJpz.5968yCysUgiaG"; }- Declared
- <nixpkgs/nixos/modules/services/torrent/magnetico.nix>