mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-23 17:35:38 +02:00
homepage: add new input
This commit is contained in:
parent
e28e66e5f5
commit
a1ffa50498
1 changed files with 30 additions and 0 deletions
30
modules/services/homepage/default.nix
Normal file
30
modules/services/homepage/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
# 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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue