mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
30 lines
638 B
Nix
30 lines
638 B
Nix
# My own personal homepage
|
|
{ config, lib, 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}";
|
|
};
|
|
};
|
|
};
|
|
}
|