diff options
Diffstat (limited to 'system/services/libreddit')
-rw-r--r-- | system/services/libreddit/default.nix | 14 |
1 files changed, 2 insertions, 12 deletions
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} = { |