mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 16:35:06 +03:00
Ivan Bushchik
6889a37771
- add celerrime-x (don't work) - minor changes (code pretty) Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
22 lines
561 B
Nix
22 lines
561 B
Nix
{ config, lib, pkgs, ... }:
|
|
let cfg = config.my.roles.server.ivabus-dev;
|
|
in {
|
|
options.my.roles.server.ivabus-dev.enable =
|
|
lib.mkEnableOption "Serve ivabus.dev";
|
|
config = lib.mkIf (cfg.enable) {
|
|
my.roles.server.nginx.enable = true;
|
|
services.nginx = {
|
|
virtualHosts."ivabus.dev" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
|
|
root = pkgs.callPackage ../../pkgs/ivabus-dev.nix { };
|
|
|
|
extraConfig = ''
|
|
error_page 404 /404.html;
|
|
'';
|
|
serverAliases = [ "www.ivabus.dev" ];
|
|
};
|
|
};
|
|
};
|
|
}
|