mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Added homepage
This commit is contained in:
parent
18b7795c15
commit
44d81ecca3
6 changed files with 104 additions and 162 deletions
29
modules/homepage/default.nix
Normal file
29
modules/homepage/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, pkgs, inputs, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.luj.homepage;
|
||||
in
|
||||
{
|
||||
options.luj.homepage = {
|
||||
enable = mkEnableOption "enable homepage";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
{
|
||||
luj.nginx.enable = true;
|
||||
services.nginx.virtualHosts."julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = inputs.homepage;
|
||||
default = true;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."www.julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = inputs.homepage;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue