server enhancements

This commit is contained in:
kp2pml30 2025-01-27 01:16:41 +04:00
parent 95f65d9c03
commit a5dfa8c3f8
7 changed files with 69 additions and 15 deletions

16
nix/server/site.nix Normal file
View file

@ -0,0 +1,16 @@
{ config
, pkgs
, lib
, ...
}@args:
let
cfg = config.kp2pml30.server;
src = builtins.fetchGit {
url = "https://github.com/kp2pml30/kp2pml30.github.io.git";
rev = "0a887a1cd439c93efbe7d46c158102387b6fc470";
};
pack = (import "${src}/release.nix" args);
in lib.mkIf cfg.nginx {
environment.systemPackages = [ pack ];
kp2pml30.server.sitePath = pack.outPath;
}