mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 16:13:01 -04:00
too much shit idek anymore
This commit is contained in:
parent
14843ef945
commit
bc82345beb
63 changed files with 1759 additions and 346 deletions
19
modules/nixos/services/hosted/caddy.nix
Normal file
19
modules/nixos/services/hosted/caddy.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.services) mkServiceOption;
|
||||
|
||||
cfg = config.olympus.services.caddy;
|
||||
in {
|
||||
options.olympus.services.caddy = mkServiceOption "caddy" {domain = "blahai.gay";};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
10
modules/nixos/services/hosted/default.nix
Normal file
10
modules/nixos/services/hosted/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
imports = [
|
||||
./caddy.nix
|
||||
./forgejo.nix
|
||||
./redis.nix
|
||||
./searx.nix
|
||||
./uptime-kuma.nix
|
||||
./vaultwarden.nix
|
||||
];
|
||||
}
|
1
modules/nixos/services/hosted/forgejo.nix
Normal file
1
modules/nixos/services/hosted/forgejo.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
1
modules/nixos/services/hosted/redis.nix
Normal file
1
modules/nixos/services/hosted/redis.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
1
modules/nixos/services/hosted/searx.nix
Normal file
1
modules/nixos/services/hosted/searx.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
31
modules/nixos/services/hosted/uptime-kuma.nix
Normal file
31
modules/nixos/services/hosted/uptime-kuma.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.services) mkServiceOption;
|
||||
|
||||
rdomain = config.networking.domain;
|
||||
cfg = config.olympus.services.uptime-kuma;
|
||||
in {
|
||||
options.olympus.services.uptime-kuma = mkServiceOption "uptime-kuma" {
|
||||
port = 3001;
|
||||
domain = "kuma.${rdomain}";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.uptime-kuma = {
|
||||
enable = true;
|
||||
|
||||
# https://github.com/louislam/uptime-kuma/wiki/Environment-Variables
|
||||
settings.PORT = toString cfg.port;
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts.${cfg.domain} = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:${cfg.port}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
1
modules/nixos/services/hosted/vaultwarden.nix
Normal file
1
modules/nixos/services/hosted/vaultwarden.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Add table
Add a link
Reference in a new issue