mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
nixos/libreddit: remove redirect option
This commit is contained in:
parent
f04ef2a25b
commit
29bcdaade3
@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.libreddit;
|
cfg = config.services.libreddit;
|
||||||
|
|
||||||
args = concatStringsSep " " ([
|
|
||||||
"--port ${toString cfg.port}"
|
|
||||||
"--address ${cfg.address}"
|
|
||||||
] ++ optional cfg.redirect "--redirect-https");
|
|
||||||
|
|
||||||
|
args = concatStringsSep " " ([
|
||||||
|
"--port ${toString cfg.port}"
|
||||||
|
"--address ${cfg.address}"
|
||||||
|
]);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
@ -30,12 +29,6 @@ in
|
|||||||
description = "The port to listen on";
|
description = "The port to listen on";
|
||||||
};
|
};
|
||||||
|
|
||||||
redirect = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Enable the redirecting to HTTPS";
|
|
||||||
};
|
|
||||||
|
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user