-
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
68b101e
commit 24a7a6c
Showing
10 changed files
with
796 additions
and
802 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
imports = [ | ||
./qBittorrent.nix | ||
./transmission.nix | ||
./rqbit.nix | ||
./other.nix | ||
]; | ||
imports = [ | ||
./qBittorrent.nix | ||
./transmission.nix | ||
./rqbit.nix | ||
./other.nix | ||
]; | ||
} |
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 |
---|---|---|
@@ -1,67 +1,67 @@ | ||
{ lib, ... }: | ||
{ | ||
options.programs.nyaa.client.cmd = { | ||
cmd = lib.mkOption { | ||
type = lib.types.str; | ||
default = ''curl "{torrent}" > ~/{file}''; | ||
description = '' | ||
The command to run on enter | ||
Possible substitutions are: | ||
- `{magnet}` | ||
- `{torrent}` | ||
- `{title}` | ||
- `{file}` | ||
''; | ||
}; | ||
shell_cmd = lib.mkOption { | ||
type = lib.types.nullOr lib.types.str; | ||
default = null; | ||
description = '' | ||
The shell to spawn the command with (optional) | ||
Example value: | ||
`"bash -c"` | ||
''; | ||
}; | ||
}; | ||
options.programs.nyaa.client.cmd = { | ||
cmd = lib.mkOption { | ||
type = lib.types.str; | ||
default = ''curl "{torrent}" > ~/{file}''; | ||
description = '' | ||
The command to run on enter | ||
Possible substitutions are: | ||
- `{magnet}` | ||
- `{torrent}` | ||
- `{title}` | ||
- `{file}` | ||
''; | ||
}; | ||
shell_cmd = lib.mkOption { | ||
type = lib.types.nullOr lib.types.str; | ||
default = null; | ||
description = '' | ||
The shell to spawn the command with (optional) | ||
Example value: | ||
`"bash -c"` | ||
''; | ||
}; | ||
}; | ||
|
||
options.programs.nyaa.client.default_app = { | ||
use_magnet = lib.mkOption { | ||
type = lib.types.nullOr lib.types.bool; | ||
default = null; | ||
description = '' | ||
Whether to open magnet links with the default app or torrent links (optional) | ||
''; | ||
}; | ||
}; | ||
options.programs.nyaa.client.default_app = { | ||
use_magnet = lib.mkOption { | ||
type = lib.types.nullOr lib.types.bool; | ||
default = null; | ||
description = '' | ||
Whether to open magnet links with the default app or torrent links (optional) | ||
''; | ||
}; | ||
}; | ||
|
||
options.programs.nyaa.client.download = { | ||
save_dir = lib.mkOption { | ||
type = lib.types.str; | ||
default = "~/Downloads"; | ||
description = '' | ||
The default path to save .torrent files to | ||
''; | ||
}; | ||
filename = lib.mkOption { | ||
type = lib.types.nullOr lib.types.str; | ||
default = null; | ||
description = '' | ||
The filename to save the `.torrent` file as (optional) | ||
''; | ||
}; | ||
overwrite = lib.mkOption { | ||
type = lib.types.bool; | ||
default = true; | ||
description = '' | ||
Whether to overwrite the file if it exists | ||
''; | ||
}; | ||
create_root_folder = lib.mkOption { | ||
type = lib.types.bool; | ||
default = true; | ||
description = '' | ||
Whether to create the parent directory if it does not exist | ||
''; | ||
}; | ||
}; | ||
options.programs.nyaa.client.download = { | ||
save_dir = lib.mkOption { | ||
type = lib.types.str; | ||
default = "~/Downloads"; | ||
description = '' | ||
The default path to save .torrent files to | ||
''; | ||
}; | ||
filename = lib.mkOption { | ||
type = lib.types.nullOr lib.types.str; | ||
default = null; | ||
description = '' | ||
The filename to save the `.torrent` file as (optional) | ||
''; | ||
}; | ||
overwrite = lib.mkOption { | ||
type = lib.types.bool; | ||
default = true; | ||
description = '' | ||
Whether to overwrite the file if it exists | ||
''; | ||
}; | ||
create_root_folder = lib.mkOption { | ||
type = lib.types.bool; | ||
default = true; | ||
description = '' | ||
Whether to create the parent directory if it does not exist | ||
''; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.