Skip to content

Commit

Permalink
style(nix-hm): retab
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Jul 7, 2024
1 parent 68b101e commit 24a7a6c
Show file tree
Hide file tree
Showing 10 changed files with 796 additions and 802 deletions.
12 changes: 6 additions & 6 deletions modules/clients/default.nix
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
];
}
124 changes: 62 additions & 62 deletions modules/clients/other.nix
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
'';
};
};
}
Loading

0 comments on commit 24a7a6c

Please sign in to comment.