Add script to send push notification to my phone to all hosts
This commit is contained in:
parent
b26bb71d28
commit
79b5707656
4 changed files with 35 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
./mail
|
./mail
|
||||||
./network
|
./network
|
||||||
./nix
|
./nix
|
||||||
|
./phone-push
|
||||||
./smartd
|
./smartd
|
||||||
./ssh
|
./ssh
|
||||||
./sshd
|
./sshd
|
||||||
|
|
15
modules/base/phone-push/default.nix
Normal file
15
modules/base/phone-push/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, lib, pkgs, ...}:
|
||||||
|
|
||||||
|
let
|
||||||
|
phone-push = pkgs.writeShellScriptBin "phone-push" ''
|
||||||
|
curl $(cat ${config.age.secrets."files/services/phone-push-url".path}) -d "$(hostname): $@"
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = [ phone-push ];
|
||||||
|
|
||||||
|
age.secrets."files/services/phone-push-url" = {
|
||||||
|
file = ../../../secrets/files/services/phone-push-url.age;
|
||||||
|
owner = "charlotte";
|
||||||
|
};
|
||||||
|
}
|
|
@ -40,6 +40,8 @@ in
|
||||||
|
|
||||||
"secrets/passwords/services/accentor.age".publicKeys = [ urithiru ] ++ users;
|
"secrets/passwords/services/accentor.age".publicKeys = [ urithiru ] ++ users;
|
||||||
|
|
||||||
|
"secrets/files/services/phone-push-url.age".publicKeys = hosts ++ users;
|
||||||
|
|
||||||
"secrets/passwords/services/mail/charlotte_at_vanpetegem.me.age".publicKeys = [ lasting-integrity ] ++ users;
|
"secrets/passwords/services/mail/charlotte_at_vanpetegem.me.age".publicKeys = [ lasting-integrity ] ++ users;
|
||||||
"secrets/passwords/services/mail/expenses-noreply_at_vanpetegem.me.age".publicKeys = [ lasting-integrity ] ++ users;
|
"secrets/passwords/services/mail/expenses-noreply_at_vanpetegem.me.age".publicKeys = [ lasting-integrity ] ++ users;
|
||||||
"secrets/passwords/services/mail/huis_at_vanpetegem.me.age".publicKeys = [ lasting-integrity ] ++ users;
|
"secrets/passwords/services/mail/huis_at_vanpetegem.me.age".publicKeys = [ lasting-integrity ] ++ users;
|
||||||
|
|
17
secrets/files/services/phone-push-url.age
Normal file
17
secrets/files/services/phone-push-url.age
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 umFZoA VyenMMdxRwLwYqjo8W5uMd7S+4hNTysKAvVFm+Dxs0E
|
||||||
|
nVq8sHpeUQ0NHLtLmxRbXG+w5RXu9yL6tZw+kWeQr/k
|
||||||
|
-> ssh-ed25519 aUd9Ng hNTRWXwKOgtgybVnkAtWbjLl+hE7qDdk23n+TSGhCS4
|
||||||
|
pXJEqXrHqFKvssWriWY/u2Z2kA1rEJvWUkejsVFYOSY
|
||||||
|
-> ssh-ed25519 hKAFvQ 9mSxcrO4ijPITwZ/UE66KtS/zuaMhtCLqoBTMXJyilU
|
||||||
|
lSbHNG9qKlN7FFZ9fVDCoA0E47QNneGA70J59klpmr4
|
||||||
|
-> ssh-ed25519 9PfEBQ 3NIXQtZmAWOCxJ+81kPg2jl2Uv6cPevN3OmC9QFQljk
|
||||||
|
CFx4uwF1B+0T9tZjiaPIRL8s+BymbuEKeNGhAgp2QTs
|
||||||
|
-> ssh-ed25519 s9rb8g OEN0+U3GQafoHpI8oll7Kb5fMGtNuMnqklUCzt/KEhs
|
||||||
|
KGyEbVCybTSEf7+DoSZkVPuHVfz8rcZ4Jv5yMqltwYQ
|
||||||
|
-> ssh-ed25519 yad4VQ CzmkwtIMoEW5jiOBen+yw7IDChJe4IMw/7VzHaUkHAE
|
||||||
|
Dbrl7IRjE//Z9Ta+J2RBh6IZW3yZV5nPU8oml/jCNTo
|
||||||
|
-> ?;{A>tt-grease _[~Iet'g &+Z o[x;3Eo^
|
||||||
|
64UkAQ
|
||||||
|
--- 6/PDO8Sh5BZOnIn34vdwoYvsPSPgd/4Fdg2uRgYgees
|
||||||
|
›UkMܧfJ£Rø>ßðE,TÙGØd³2êc}ÎrG4ª¡4¢JrÀøeP0 ô>¿`ÍÑYšð )úqß")ü(M«K®ønÔ&<26> ɘbOÍ¥–›<E28093>@;NŽ®Y¤,¶˜<C2B6>dA¡VN)×#˜*+
|
Loading…
Add table
Add a link
Reference in a new issue