X-Git-Url: https://gitweb.ps.run/flake_server/blobdiff_plain/41d783410776432d00c1bc38d41fdd482417af87..82cc32247fd2c15159e27be870f6e75b9180b446:/configuration.nix diff --git a/configuration.nix b/configuration.nix index 17e1a4c..0118645 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, lib, pkgs, ... } @ args: +{ config, lib, pkgs, inputs, ... } @ args: { imports = @@ -19,7 +19,7 @@ # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.package = pkgs.nixVersions.nix_2_28; + nix.settings.download-buffer-size = 500000000; nix.gc = { automatic = true; @@ -75,7 +75,11 @@ sudo.wheelNeedsPassword = false; }; - # nixpkgs.config.allowUnfree = true; + nixpkgs.config.allowUnfree = true; + + nixpkgs.overlays = [ + (inputs.psch-flakes.overlays.cgit) + ]; # List packages installed in system profile. To search, run: # $ nix search wget @@ -106,8 +110,8 @@ let githooksRepo = pkgs.fetchgit { url = "git://psch.dev/git-hooks"; - rev = "1071cff3ca2626dca967eb0989c0874764c460e2"; - hash = "sha256-dvTchTWvIlsqkU+iYm11kVTPr2B2LrCAdhZkmOoLRzA="; + rev = "1a40e097c8854d5a0e65c070addaa7e3337635c0"; + hash = "sha256-KNKnP/3hhQQlildzRF+skYHtV+7Xg1MQMPi2DDEHGAI="; }; in { @@ -163,9 +167,12 @@ # virtualisation.qemu.guestAgent.enable = true; programs.mosh.enable = true; - services.caddy = { enable = true; + + virtualHosts."tnx.sh".extraConfig = '' + respond "The Website is under Construction." + ''; virtualHosts."psch.dev".extraConfig = '' basic_auth /julius_cam/* { test $2a$14$iKv0GlwavCunG0zQbaf2fOl4r4/8k8gDKUVUouu9Q3o.MfSDkp6Te } root * /srv/www @@ -176,6 +183,9 @@ request_buffers 8192 } ''; + virtualHosts."mail.psch.dev".extraConfig = '' + respond mail + ''; }; services.caddy.virtualHosts."git.psch.dev".extraConfig = '' encode gzip zstd @@ -198,12 +208,15 @@ snapshots=tar tar.gz zip enable-git-config=1 enable-index-owner=0 + enable-log-filecount=1 + enable-log-linecount=1 section-from-path=1 virtual-root=/ module-link=/%s/commit/?id=%s clone-url=https://git.psch.dev/$CGIT_REPO_URL git://psch.dev/$CGIT_REPO_URL ssh://git@psch.dev/~/$CGIT_REPO_URL noplainemail=1 side-by-side-diffs=1 + repository-sort=age about-filter=${pkgs.writeShellScript "markdown-filter" '' echo '