mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: fix browser, add uptime-kuma
This commit is contained in:
parent
f6a5590a9c
commit
cb7eb46ee7
5 changed files with 34 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
BROWSER = "zen";
|
BROWSER = "librewolf";
|
||||||
};
|
};
|
||||||
stylix.targets.librewolf = {
|
stylix.targets.librewolf = {
|
||||||
colorTheme.enable = true;
|
colorTheme.enable = true;
|
||||||
|
|
|
||||||
20
nixos/servers/uptime-kuma/uptime-kuma.nix
Normal file
20
nixos/servers/uptime-kuma/uptime-kuma.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{config, ...}: let
|
||||||
|
domain = "kuma.kittywit.ch";
|
||||||
|
cfg = config.services.uptime-kuma;
|
||||||
|
in {
|
||||||
|
services.uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.nginx.virtualHosts.${domain} = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://localhost:${toString cfg.settings.PORT}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -15,6 +15,8 @@ _: let
|
||||||
oracle_micro
|
oracle_micro
|
||||||
])
|
])
|
||||||
++ (with tree.nixos.servers; [
|
++ (with tree.nixos.servers; [
|
||||||
|
uptime-kuma
|
||||||
|
web
|
||||||
]);
|
]);
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
|
||||||
|
|
@ -42,3 +42,12 @@ resource "cloudflare_record" "ntfy" {
|
||||||
value = "daiyousei.inskip.me"
|
value = "daiyousei.inskip.me"
|
||||||
zone_id = local.zone_ids.kittywitch
|
zone_id = local.zone_ids.kittywitch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "kuma" {
|
||||||
|
name = "kuma"
|
||||||
|
proxied = false
|
||||||
|
ttl = 3600
|
||||||
|
type = "CNAME"
|
||||||
|
value = "mei.inskip.me"
|
||||||
|
zone_id = local.zone_ids.kittywitch
|
||||||
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue