mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
31 lines
644 B
Nix
31 lines
644 B
Nix
![]() |
# My own personal homepage
|
||
|
{ config, lib, pkgs, inputs, ... }:
|
||
|
let
|
||
|
cfg = config.my.services.homepage;
|
||
|
domain = config.networking.domain;
|
||
|
in
|
||
|
{
|
||
|
options.my.services.homepage = with lib; {
|
||
|
enable = mkEnableOption "Stunkymonkey-Hompage";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
my.services.nginx.virtualHosts = [
|
||
|
{
|
||
|
subdomain = "blog";
|
||
|
root = inputs.stunkymonkey.packages.${config.nixpkgs.system}.default;
|
||
|
}
|
||
|
];
|
||
|
|
||
|
webapps.apps.homepage = {
|
||
|
dashboard = {
|
||
|
name = "Homepage";
|
||
|
category = "other";
|
||
|
icon = "blog";
|
||
|
link = "https://blog.${domain}";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|