Add Matrix RIL100 Lookup Bot
This commit is contained in:
parent
29f4ff1d92
commit
4a66006d75
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
11
flake.nix
11
flake.nix
|
@ -17,6 +17,8 @@
|
|||
|
||||
colorpickle.url = "github:AgathaSorceress/colorpickle";
|
||||
|
||||
matrix-ril100.url = "git+https://git.lain.faith/sorceress/matrix-ril100";
|
||||
|
||||
# Latest colmena + prettier loading icons
|
||||
colmena.url = "github:AgathaSorceress/colmena";
|
||||
|
||||
|
@ -28,7 +30,8 @@
|
|||
helix.url = "github:helix-editor/helix";
|
||||
};
|
||||
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 = {
|
||||
network = {
|
||||
description = "Agatha's Nix Infra";
|
||||
|
@ -42,6 +45,7 @@
|
|||
frq-friend = frq-friend.defaultPackage.${final.system};
|
||||
vampysite = vampysite.packages.${final.system}.default;
|
||||
spicetify-pkgs = spicetify-nix.packages.${final.system}.default;
|
||||
matrix-ril100 = matrix-ril100.packages.${final.system}.default;
|
||||
})
|
||||
colmena.overlay
|
||||
];
|
||||
|
@ -78,6 +82,11 @@
|
|||
keyCommand = [ "cat" "./secrets/frq-friend-fedi-data.toml" ];
|
||||
destDir = "/var/lib/frq-friend";
|
||||
};
|
||||
"ril100-bot-secrets" = {
|
||||
keyCommand = [ "cat" "./secrets/ril100-bot-secrets" ];
|
||||
destDir = "/var/lib/matrix-ril100";
|
||||
name = ".env";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
../../common/fragments/homepage.nix
|
||||
../../common/fragments/mastodon-ebooks.nix
|
||||
../../common/fragments/mastodon.nix
|
||||
../../common/fragments/matrix-ril100.nix
|
||||
../../common/fragments/matterbridge.nix
|
||||
../../common/fragments/minecraft.nix
|
||||
../../common/fragments/nyandroid.nix
|
||||
|
|
Loading…
Reference in New Issue