From 5ce77f1e3bd893e232ab46e26457fe3f5ee452cd Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 10 Jun 2024 20:54:33 +0200 Subject: fix(libreddit): Remove manual module override The fixes have been up streamed into `nixpkgs` by now. --- system/services/libreddit/default.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'system') diff --git a/system/services/libreddit/default.nix b/system/services/libreddit/default.nix index e527ec2..d2f06f4 100644 --- a/system/services/libreddit/default.nix +++ b/system/services/libreddit/default.nix @@ -1,29 +1,19 @@ { - pkgs-unstable, config, + pkgs, lib, ... }: let domain = "libreddit.vhack.eu"; - cfg = config.services.libreddit; - - # Taken from nixpkgs module - args = lib.concatStringsSep " " [ - "--port ${toString cfg.port}" - "--address ${cfg.address}" - ]; in { services.libreddit = { enable = true; - package = pkgs-unstable.redlib; + package = pkgs.redlib; port = 8080; address = "127.0.0.1"; openFirewall = false; }; - # Force systemd service to use correct binary - systemd.services.libreddit.serviceConfig.ExecStart = lib.mkForce "${lib.getExe cfg.package} ${args}"; - services.nginx = { enable = true; virtualHosts.${domain} = { -- cgit 1.4.1