Compare commits

..
Author SHA1 Message Date
00b4ede3e5 chore(deps): update mtp digest to 188caf5
Some checks are pending
renovate/stability-days Updates have not met minimum release age requirement
2026-08-14 16:01:37 +03:00

View file

@ -7,12 +7,7 @@
}; };
outputs = outputs =
{ { self, nixpkgs, rust-overlay, ... }:
self,
nixpkgs,
rust-overlay,
...
}:
let let
systems = [ systems = [
"aarch64-darwin" "aarch64-darwin"
@ -84,7 +79,7 @@
src = source; src = source;
pnpm = pkgs.pnpm; pnpm = pkgs.pnpm;
fetcherVersion = 4; fetcherVersion = 4;
hash = "sha256-NUWGQOodwjJTMzJtkuqoL/nWTs85jlpXIZAY4a86QEw="; hash = "sha256-x9YvkWSTYG3AULRNXdaNOnHQTtlosZGqq//jV6DPkSk=";
}; };
frontend = pkgs.stdenvNoCC.mkDerivation { frontend = pkgs.stdenvNoCC.mkDerivation {
pname = "methanium-status-frontend"; pname = "methanium-status-frontend";
@ -171,12 +166,7 @@
}); });
nixosModules.default = nixosModules.default =
{ { config, lib, pkgs, ... }:
config,
lib,
pkgs,
...
}:
let let
cfg = config.services.methanium-status; cfg = config.services.methanium-status;
acmeHost = if cfg.acmeHost == null then cfg.hostName else cfg.acmeHost; acmeHost = if cfg.acmeHost == null then cfg.hostName else cfg.acmeHost;
@ -248,9 +238,7 @@
options.services.methanium-status = { options.services.methanium-status = {
enable = lib.mkEnableOption "Methanium Status monitoring and status page"; enable = lib.mkEnableOption "Methanium Status monitoring and status page";
package = lib.mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "backend" { }; package = lib.mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "backend" { };
frontendPackage = frontendPackage = lib.mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "frontend" { };
lib.mkPackageOption self.packages.${pkgs.stdenv.hostPlatform.system} "frontend"
{ };
hostName = lib.mkOption { hostName = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "status.methanium.net"; default = "status.methanium.net";
@ -315,31 +303,11 @@
name = "Methanium"; name = "Methanium";
logo = ./apps/frontend/public/methanium.svg; logo = ./apps/frontend/public/methanium.svg;
services = [ services = [
{ { id = "methanium-homepage"; name = "Homepage"; url = "https://methanium.net"; }
id = "methanium-homepage"; { id = "methanium-ui"; name = "Methanium UI"; url = "https://ui.methanium.net"; }
name = "Homepage"; { id = "vector-verdict"; name = "Vector Verdict"; url = "https://vv.methanium.net"; }
url = "https://methanium.net"; { id = "methanium-git"; name = "Git"; url = "https://git.methanium.net"; }
} { id = "methanium-legal"; name = "Legal Page"; url = "https://legal.methanium.net"; }
{
id = "methanium-ui";
name = "Methanium UI";
url = "https://ui.methanium.net";
}
{
id = "vector-verdict";
name = "Vector Verdict";
url = "https://vv.methanium.net";
}
{
id = "methanium-git";
name = "Git";
url = "https://git.methanium.net";
}
{
id = "methanium-legal";
name = "Legal Page";
url = "https://legal.methanium.net";
}
]; ];
} }
{ {
@ -347,32 +315,11 @@
name = "Tensamin"; name = "Tensamin";
logo = ./apps/frontend/public/tensamin.svg; logo = ./apps/frontend/public/tensamin.svg;
services = [ services = [
{ { id = "tensamin-homepage"; name = "Homepage"; url = "https://tensamin.net"; }
id = "tensamin-homepage"; { id = "tensamin-app"; name = "Web App"; url = "https://app.tensamin.net"; }
name = "Homepage"; { id = "tensamin-dev"; name = "Web App (Dev)"; url = "https://dev.tensamin.net"; }
url = "https://tensamin.net"; { id = "tensamin-docs"; name = "Docs"; url = "https://docs.tensamin.net"; }
} { id = "tensamin-omega"; name = "Omega"; url = "https://omega.tensamin.net"; checkHttp3 = true; }
{
id = "tensamin-app";
name = "Web App";
url = "https://app.tensamin.net";
}
{
id = "tensamin-dev";
name = "Web App (Dev)";
url = "https://dev.tensamin.net";
}
{
id = "tensamin-docs";
name = "Docs";
url = "https://docs.tensamin.net";
}
{
id = "tensamin-omega";
name = "Omega";
url = "https://omega.tensamin.net";
checkHttp3 = true;
}
]; ];
} }
]; ];
@ -394,14 +341,8 @@
systemd.services.methanium-status = { systemd.services.methanium-status = {
description = "Methanium Status monitor"; description = "Methanium Status monitor";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ wants = [ "network-online.target" "acme-${acmeHost}.service" ];
"network-online.target" after = [ "network-online.target" "acme-${acmeHost}.service" ];
"acme-${acmeHost}.service"
];
after = [
"network-online.target"
"acme-${acmeHost}.service"
];
restartTriggers = [ configFile ]; restartTriggers = [ configFile ];
serviceConfig = { serviceConfig = {
User = "methanium-status"; User = "methanium-status";
@ -424,10 +365,7 @@
ProtectKernelModules = true; ProtectKernelModules = true;
ProtectKernelTunables = true; ProtectKernelTunables = true;
ProtectSystem = "strict"; ProtectSystem = "strict";
RestrictAddressFamilies = [ RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
"AF_INET"
"AF_INET6"
];
RestrictNamespaces = true; RestrictNamespaces = true;
RestrictRealtime = true; RestrictRealtime = true;
SystemCallArchitectures = "native"; SystemCallArchitectures = "native";