diff options
author | Marc Coquand <marc@mccd.space> | 2024-01-23 11:11:38 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-01-23 13:27:35 -0600 |
commit | 3fab45913ad8311f8101833a1b18d3db7bcf195d (patch) | |
tree | a5dcc1e3e4be8c398f0785a8cb1913d297ad08d2 /configuration.nix | |
parent | 1c0999b8133bc19a1e30584c8171c7ef86b3b64d (diff) | |
download | nixos-3fab45913ad8311f8101833a1b18d3db7bcf195d.tar.gz nixos-3fab45913ad8311f8101833a1b18d3db7bcf195d.tar.bz2 nixos-3fab45913ad8311f8101833a1b18d3db7bcf195d.zip |
Add cgitCss
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix index b8f7129..d99dceb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,7 @@ -{ pkgs, inputs, ... }: { +{ pkgs, inputs, ... }: +let + cgitCss = pkgs.writeText "cgit.css" (builtins.readFile ./cgit.css); +in { imports = [ ./hardware-configuration.nix ./networking.nix # generated at runtime by nixos-infect @@ -54,10 +57,11 @@ enable = true; nginx.virtualHost = "git.mccd.space"; settings = { - css = "/cgit.css"; + css = "/cgit2.css"; logo = ""; favicon = ""; enable-index-owner = "0"; + enable-index-links = "0"; snapshots = "tar.gz tar.bz2 zip"; about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.sh"; source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; @@ -110,6 +114,9 @@ virtualHosts."git.mccd.space" = { forceSSL = true; enableACME = true; + locations."= /cgit2.css" = { + alias = "${cgitCss}"; + }; }; @@ -129,6 +136,7 @@ }; }; + networking.firewall.allowedTCPPorts = [ 80 443 8080]; system.stateVersion = "24.05"; |