summary refs log tree commit diff stats
path: root/system/services/libreddit/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-10 20:54:33 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 20:32:29 +0200
commit5ce77f1e3bd893e232ab46e26457fe3f5ee452cd (patch)
treeafec3fe6443b5eac251f8c618ed327c0d8810959 /system/services/libreddit/default.nix
parentrefactor(flake): Use camelCase for `pkgsUnstable` (diff)
downloadnixos-server-5ce77f1e3bd893e232ab46e26457fe3f5ee452cd.tar.gz
nixos-server-5ce77f1e3bd893e232ab46e26457fe3f5ee452cd.zip
fix(libreddit): Remove manual module override
The fixes have been up streamed into `nixpkgs` by now.
Diffstat (limited to 'system/services/libreddit/default.nix')
-rw-r--r--system/services/libreddit/default.nix14
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} = {