nixos-config/modules/server/blog.nix

25 lines
410 B
Nix
Raw Normal View History

2024-09-28 22:11:30 +02:00
{
config,
pkgs,
lib,
...
}:
with lib;
{
options.my.server.blog.enable = mkOption {
type = types.bool;
default = false;
description = ''
Enable hosting my personnal website.
'';
};
config = mkIf config.my.server.blog.enable {
services.nginx.virtualHosts."dalaran.fr" = {
locations."/".extraConfig = ''
root ${pkgs.dalaran-fr-blog};
'';
};
};
}