Slide 79
Slide 79 text
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
configuration.nix
{ config, pkgs, lib, ... }:
{
fileSystems."/home" = {
device = "/dev/disk/by-label/home";
};
environment.systemPackages = [ pkgs.git pkgs.vim ];
services.nginx = {
enable = true;
package = pkgs.nginx.overrideAttrs (oldAttrs: {
patches = [ (builtins.toFile "patch" ''
--- ./src/core/ngx_conf_file.c
+++ ./src/core/ngx_conf_file.c
@@ -2,10 +2,10 @@
-#define NGX_CONF_BUFFER 4096
+#define NGX_CONF_BUFFER 131072
'') ];
});
virtualHosts."example.com" = {
serverAliases = [ "www.example.com" ];
enableACME = true;
forceSSL = true;
root = someSitePackage.root;
};
};
}