-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c7caa2
commit ad2626c
Showing
6 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Command-line options | ||
There are a few command line options that can be supplied when running nyaa. They are: | ||
| Option | Description | | ||
| -------------------------- | ---------------------------------------------------------- | | ||
| `-V/-v/--version` | Print the current version of `nyaa` | | ||
| `--config=/path/to/config` | Override the path to the config folder (not `config.toml`) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Home-manager | ||
When using home-manager, you can import a custom module to configure nyaa. | ||
|
||
First, add to `inputs` in `flake.nix`: | ||
```nix | ||
nyaa = { | ||
url = "github:Beastwick18/nyaa"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
``` | ||
|
||
Then, add to `home.nix` imports and enable nyaa: | ||
```nix | ||
imports = [ | ||
inputs.nyaa.homeManagerModule | ||
] | ||
programs.nyaa.enable = true; | ||
``` | ||
|
||
## Options | ||
Most options available in the `config.toml` file can be configured through home-manager. The only option not available is | ||
`save_config_on_change`. This is because the value should always be `false` since the config will be saved to the nix store, | ||
which is read-only. | ||
|
||
For global options (not in a table), you can modify them with `programs.nyaa.*`. So to change the timeout, you could write: | ||
```nix | ||
programs.nyaa.timeout = 45; | ||
``` | ||
|
||
For tables, such as `client.qBittorrent`, you would access it like `programs.nyaa.client.qBittorrent.*` | ||
and add the property you want to change in the attribute set. So to change the base_url, you would write: | ||
```nix | ||
programs.nyaa.client.qBittorrent.base_url = "..."; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters