mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-17 07:44:41 +04:00
server enhancements
This commit is contained in:
parent
95f65d9c03
commit
a5dfa8c3f8
7 changed files with 69 additions and 15 deletions
16
nix/server/site.nix
Normal file
16
nix/server/site.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue