summaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-01-23 11:11:38 -0600
committerMarc Coquand <marc@mccd.space>2024-01-23 13:27:35 -0600
commit3fab45913ad8311f8101833a1b18d3db7bcf195d (patch)
treea5dcc1e3e4be8c398f0785a8cb1913d297ad08d2 /configuration.nix
parent1c0999b8133bc19a1e30584c8171c7ef86b3b64d (diff)
downloadnixos-3fab45913ad8311f8101833a1b18d3db7bcf195d.tar.gz
nixos-3fab45913ad8311f8101833a1b18d3db7bcf195d.tar.bz2
nixos-3fab45913ad8311f8101833a1b18d3db7bcf195d.zip
Add cgitCss
Diffstat (limited to '')
-rw-r--r--configuration.nix12
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";