mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 13:34:25 +01:00
Remove meta.ports and meta.domains modules
This commit is contained in:
parent
d8abea9e18
commit
b487ec8ae7
31 changed files with 8 additions and 273 deletions
|
|
@ -19,11 +19,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
users = {
|
||||
users.actual = {
|
||||
isSystemUser = true;
|
||||
|
|
|
|||
|
|
@ -63,11 +63,6 @@ in
|
|||
in
|
||||
metricsAssertions ++ logsAssertions;
|
||||
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.alloy = {
|
||||
enable = true;
|
||||
extraFlags = [
|
||||
|
|
|
|||
|
|
@ -29,11 +29,6 @@ in
|
|||
message = self.lib.mkUnprotectedMessage "Filebrowser";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.filebrowser = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -17,11 +17,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
users = {
|
||||
users.git = {
|
||||
isSystemUser = true;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta.ports.tcp = [ cfg.port ];
|
||||
|
||||
services.forgejo.settings.server.SSH_PORT = cfg.port;
|
||||
|
||||
services.openssh = {
|
||||
|
|
|
|||
|
|
@ -29,11 +29,6 @@ in
|
|||
message = self.lib.mkUnprotectedMessage "FreshRSS";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.freshrss = {
|
||||
enable = true;
|
||||
baseUrl = "https://${cfg.domain}";
|
||||
|
|
|
|||
|
|
@ -70,11 +70,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
sops = {
|
||||
secrets."healthchecks/ping-key" = { };
|
||||
templates."gatus.env" = {
|
||||
|
|
@ -176,7 +171,10 @@ in
|
|||
let
|
||||
defaultEndpoints =
|
||||
self.nixosConfigurations
|
||||
|> lib.mapAttrs (_: host: host.config.meta.domains.local)
|
||||
|> lib.mapAttrs (
|
||||
_: host:
|
||||
host.config.custom.services.caddy.virtualHosts |> lib.attrValues |> lib.map (vHost: vHost.domain)
|
||||
)
|
||||
|> lib.concatMapAttrs (
|
||||
hostName: domains:
|
||||
domains
|
||||
|
|
|
|||
|
|
@ -64,11 +64,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
sops.secrets."grafana/admin-password" = {
|
||||
owner = config.users.users.grafana.name;
|
||||
restartUnits = [ "grafana.service" ];
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta.domains.local = [ cfg.domain ];
|
||||
|
||||
custom.services.caddy.virtualHosts.${cfg.domain}.files = "${pkgs.it-tools}/lib";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,11 +24,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.memos = {
|
||||
enable = true;
|
||||
settings = options.services.memos.settings.default // {
|
||||
|
|
|
|||
|
|
@ -16,11 +16,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.ntfy-sh = {
|
||||
enable = true;
|
||||
settings = lib.mkForce {
|
||||
|
|
|
|||
|
|
@ -22,11 +22,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
sops.secrets."outline/gitlab-auth-secret" = {
|
||||
owner = config.users.users.outline.name;
|
||||
restartUnits = [ "outline.service" ];
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta.domains.local = [ cfg.domain ];
|
||||
|
||||
systemd.services.generate-blog = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
|
|
|||
|
|
@ -20,11 +20,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services = {
|
||||
privatebin = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -25,11 +25,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
sops.secrets."radicale/htpasswd" = {
|
||||
owner = config.users.users.radicale.name;
|
||||
restartUnits = [ "radicale.service" ];
|
||||
|
|
|
|||
|
|
@ -26,11 +26,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.stirling-pdf = {
|
||||
enable = true;
|
||||
environment = {
|
||||
|
|
|
|||
|
|
@ -16,11 +16,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
services.uptime-kuma = {
|
||||
enable = true;
|
||||
settings.PORT = toString cfg.port;
|
||||
|
|
|
|||
|
|
@ -16,11 +16,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
users = {
|
||||
users.victorialogs = {
|
||||
isSystemUser = true;
|
||||
|
|
|
|||
|
|
@ -16,11 +16,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
users = {
|
||||
users.victoriametrics = {
|
||||
isSystemUser = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue