Fix all the flake check problems

Fixes all of the problems with nix flake check, including reformatting
all the things cleanup on shell and configuration
This commit is contained in:
Greg Hellings
2024-10-19 01:41:53 -05:00
parent a71eb7485a
commit 7471e6dd5c
7 changed files with 33 additions and 35 deletions
+1 -17
View File
@@ -1,11 +1,7 @@
{ pkgs, ... }:
{ ... }:
let
wikiHost = "wiki.icdm.lan";
kiwixport = 8080;
dependents = with pkgs; [
enwiki-dump
transmission
];
in
{
services.kiwix-serve = {
@@ -14,18 +10,6 @@ in
path = "/srv/zims/*.zim";
};
services.transmission = {
enable = true;
settings = {
download-dir = "/srv";
incomplete-dir = "/srv/incomplete";
rpc-bind-address = "0.0.0.0";
rpc-whitelist = "10.42.*,127.*,localhost";
};
};
greg.proxies."${wikiHost}".target = "http://localhost:${toString kiwixport}";
networking.firewall.allowedTCPPorts = [ 80 ];
environment.systemPackages = dependents;
}