Add Matrix RIL100 Lookup Bot

This commit is contained in:
Agatha Lovelace 2023-07-07 16:08:54 +02:00
parent 29f4ff1d92
commit 4a66006d75
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,14 @@
{ pkgs, ... }: {
systemd.services.matrix-ril100 = {
wantedBy = [ "multi-user.target" ];
description = "A matrix bot that looks up RIL100 codes and station names";
after = [ "network.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.matrix-ril100}/bin/matrix-ril100";
WorkingDirectory = "/var/lib/matrix-ril100";
Restart = "always";
};
};
}

View File

@ -17,6 +17,8 @@
colorpickle.url = "github:AgathaSorceress/colorpickle"; colorpickle.url = "github:AgathaSorceress/colorpickle";
matrix-ril100.url = "git+https://git.lain.faith/sorceress/matrix-ril100";
# Latest colmena + prettier loading icons # Latest colmena + prettier loading icons
colmena.url = "github:AgathaSorceress/colmena"; colmena.url = "github:AgathaSorceress/colmena";
@ -28,7 +30,8 @@
helix.url = "github:helix-editor/helix"; helix.url = "github:helix-editor/helix";
}; };
outputs = { nixpkgs, nixpkgs-unstable, home-manager, mms, helix, url-eater outputs = { nixpkgs, nixpkgs-unstable, home-manager, mms, helix, url-eater
, colorpickle, frq-friend, colmena, vampysite, spicetify-nix, ... }: { , colorpickle, matrix-ril100, frq-friend, colmena, vampysite, spicetify-nix
, ... }: {
colmena = { colmena = {
network = { network = {
description = "Agatha's Nix Infra"; description = "Agatha's Nix Infra";
@ -42,6 +45,7 @@
frq-friend = frq-friend.defaultPackage.${final.system}; frq-friend = frq-friend.defaultPackage.${final.system};
vampysite = vampysite.packages.${final.system}.default; vampysite = vampysite.packages.${final.system}.default;
spicetify-pkgs = spicetify-nix.packages.${final.system}.default; spicetify-pkgs = spicetify-nix.packages.${final.system}.default;
matrix-ril100 = matrix-ril100.packages.${final.system}.default;
}) })
colmena.overlay colmena.overlay
]; ];
@ -78,6 +82,11 @@
keyCommand = [ "cat" "./secrets/frq-friend-fedi-data.toml" ]; keyCommand = [ "cat" "./secrets/frq-friend-fedi-data.toml" ];
destDir = "/var/lib/frq-friend"; destDir = "/var/lib/frq-friend";
}; };
"ril100-bot-secrets" = {
keyCommand = [ "cat" "./secrets/ril100-bot-secrets" ];
destDir = "/var/lib/matrix-ril100";
name = ".env";
};
}; };
}; };
}; };

View File

@ -9,6 +9,7 @@
../../common/fragments/homepage.nix ../../common/fragments/homepage.nix
../../common/fragments/mastodon-ebooks.nix ../../common/fragments/mastodon-ebooks.nix
../../common/fragments/mastodon.nix ../../common/fragments/mastodon.nix
../../common/fragments/matrix-ril100.nix
../../common/fragments/matterbridge.nix ../../common/fragments/matterbridge.nix
../../common/fragments/minecraft.nix ../../common/fragments/minecraft.nix
../../common/fragments/nyandroid.nix ../../common/fragments/nyandroid.nix