feat(meta/ntfy-sh): register ntfy-sh password in meta
All checks were successful
Check meta / check_dns (push) Successful in 13s
Check meta / check_meta (push) Successful in 15s
Check meta / check_meta (pull_request) Successful in 15s
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / Jaccess01 (pull_request) Successful in 22s
Build all the nodes / Jaccess04 (pull_request) Successful in 22s
Run pre-commit on all files / pre-commit (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (push) Successful in 31s
Build all the nodes / ap01 (pull_request) Successful in 37s
Build all the nodes / bridge01 (pull_request) Successful in 43s
Build all the nodes / cof02 (pull_request) Successful in 47s
Build all the nodes / geo01 (pull_request) Successful in 47s
Build all the nodes / build01 (pull_request) Successful in 57s
Build all the nodes / geo02 (pull_request) Successful in 50s
Build all the nodes / compute01 (pull_request) Successful in 1m18s
Build all the nodes / hypervisor01 (pull_request) Successful in 45s
Build all the nodes / hypervisor02 (pull_request) Successful in 44s
Build all the nodes / hypervisor03 (pull_request) Successful in 44s
Build all the nodes / netcore01 (pull_request) Successful in 21s
Build all the nodes / lab-router01 (pull_request) Successful in 43s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build all the nodes / iso (pull_request) Successful in 52s
Build all the nodes / krz01 (pull_request) Successful in 1m31s
Build all the nodes / tower01 (pull_request) Successful in 50s
Build all the nodes / rescue01 (pull_request) Successful in 1m6s
Build all the nodes / web02 (pull_request) Successful in 47s
Build all the nodes / vault01 (pull_request) Successful in 1m5s
Build all the nodes / web01 (pull_request) Successful in 1m8s
Build the shell / build-shell (pull_request) Successful in 22s
Build all the nodes / zulip01 (pull_request) Successful in 49s
Build all the nodes / web03 (pull_request) Successful in 51s
Build all the nodes / storage01 (pull_request) Successful in 3m8s
All checks were successful
Check meta / check_dns (push) Successful in 13s
Check meta / check_meta (push) Successful in 15s
Check meta / check_meta (pull_request) Successful in 15s
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / Jaccess01 (pull_request) Successful in 22s
Build all the nodes / Jaccess04 (pull_request) Successful in 22s
Run pre-commit on all files / pre-commit (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (push) Successful in 31s
Build all the nodes / ap01 (pull_request) Successful in 37s
Build all the nodes / bridge01 (pull_request) Successful in 43s
Build all the nodes / cof02 (pull_request) Successful in 47s
Build all the nodes / geo01 (pull_request) Successful in 47s
Build all the nodes / build01 (pull_request) Successful in 57s
Build all the nodes / geo02 (pull_request) Successful in 50s
Build all the nodes / compute01 (pull_request) Successful in 1m18s
Build all the nodes / hypervisor01 (pull_request) Successful in 45s
Build all the nodes / hypervisor02 (pull_request) Successful in 44s
Build all the nodes / hypervisor03 (pull_request) Successful in 44s
Build all the nodes / netcore01 (pull_request) Successful in 21s
Build all the nodes / lab-router01 (pull_request) Successful in 43s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build all the nodes / iso (pull_request) Successful in 52s
Build all the nodes / krz01 (pull_request) Successful in 1m31s
Build all the nodes / tower01 (pull_request) Successful in 50s
Build all the nodes / rescue01 (pull_request) Successful in 1m6s
Build all the nodes / web02 (pull_request) Successful in 47s
Build all the nodes / vault01 (pull_request) Successful in 1m5s
Build all the nodes / web01 (pull_request) Successful in 1m8s
Build the shell / build-shell (pull_request) Successful in 22s
Build all the nodes / zulip01 (pull_request) Successful in 49s
Build all the nodes / web03 (pull_request) Successful in 51s
Build all the nodes / storage01 (pull_request) Successful in 3m8s
This commit is contained in:
parent
eff0ac4459
commit
125c59b7f8
3 changed files with 32 additions and 9 deletions
|
@ -2,11 +2,31 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{ config, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
meta,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib)
|
||||||
|
filterAttrs
|
||||||
|
mapAttrsToList
|
||||||
|
mapAttrs
|
||||||
|
;
|
||||||
|
|
||||||
host = "push.dgnum.eu";
|
host = "push.dgnum.eu";
|
||||||
port = 2586;
|
port = 2586;
|
||||||
|
|
||||||
|
ntfy-users = mapAttrs (_: member: { hashedPassword = member.ntfy-hashedPassword; }) (
|
||||||
|
filterAttrs (_: member: member.ntfy-hashedPassword != null) meta.organization.members
|
||||||
|
);
|
||||||
|
ntfy-access = mapAttrsToList (name: _: {
|
||||||
|
topic = "monitoring";
|
||||||
|
username = name;
|
||||||
|
permission = "ro";
|
||||||
|
}) ntfy-users;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
@ -36,15 +56,9 @@ in
|
||||||
username = "systemd";
|
username = "systemd";
|
||||||
permission = "wo";
|
permission = "wo";
|
||||||
}
|
}
|
||||||
];
|
] ++ ntfy-access;
|
||||||
users = {
|
users = ntfy-users // {
|
||||||
"systemd".passwordFile = config.age.secrets."ntfy-sh-systemd_passwd".path;
|
"systemd".passwordFile = config.age.secrets."ntfy-sh-systemd_passwd".path;
|
||||||
|
|
||||||
# TODO: through meta
|
|
||||||
"catvayor" = {
|
|
||||||
role = "admin";
|
|
||||||
hashedPassword = "$2b$05$rDvB8C7OoWoyAgLAeaZBcuptiJulF/BfSYREoPRIZkmAO7hhimvNy";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -142,6 +142,14 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ntfy-hashedPassword = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Hashed password for ntfy-sh account.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# FIXME: Unused
|
# FIXME: Unused
|
||||||
vpnKeys = mkOption {
|
vpnKeys = mkOption {
|
||||||
type = attrsOf vpnKeyType;
|
type = attrsOf vpnKeyType;
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
builderKeys = [
|
builderKeys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDn3ft6Pmlql8er86nyCVFSQDEY993By+667OmN3ECK9 catvayor@kat-probook"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDn3ft6Pmlql8er86nyCVFSQDEY993By+667OmN3ECK9 catvayor@kat-probook"
|
||||||
];
|
];
|
||||||
|
ntfy-hashedPassword = "$2b$05$rDvB8C7OoWoyAgLAeaZBcuptiJulF/BfSYREoPRIZkmAO7hhimvNy";
|
||||||
};
|
};
|
||||||
|
|
||||||
cst1 = {
|
cst1 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue