0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

libreddit: remove as unmaintained upstream

This commit is contained in:
Guanran Wang 2024-07-17 22:07:18 +08:00
parent 9355fa86e6
commit f7a0c71b61
No known key found for this signature in database
GPG key ID: 91F97D9ED12639CF
8 changed files with 13 additions and 70 deletions

View file

@ -3,7 +3,7 @@
with lib;
let
cfg = config.services.libreddit;
cfg = config.services.redlib;
args = concatStringsSep " " ([
"--port ${toString cfg.port}"
@ -11,11 +11,15 @@ let
]);
in
{
imports = [
(mkRenamedOptionModule [ "services" "libreddit" ] [ "services" "redlib" ])
];
options = {
services.libreddit = {
services.redlib = {
enable = mkEnableOption "Private front-end for Reddit";
package = mkPackageOption pkgs "libreddit" { };
package = mkPackageOption pkgs "redlib" { };
address = mkOption {
default = "0.0.0.0";
@ -34,14 +38,14 @@ in
openFirewall = mkOption {
type = types.bool;
default = false;
description = "Open ports in the firewall for the libreddit web interface";
description = "Open ports in the firewall for the redlib web interface";
};
};
};
config = mkIf cfg.enable {
systemd.services.libreddit = {
systemd.services.redlib = {
description = "Private front-end for Reddit";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];