h: add icbirc script and try to start it
also ovelay weechat
This commit is contained in:
parent
57c9844925
commit
e087489467
13
bins/icb-irc-tunnel.nix
Normal file
13
bins/icb-irc-tunnel.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, icbirc }:
|
||||
|
||||
''
|
||||
#!/usr/bin/env sh
|
||||
${pkgs.procps}/bin/pkill icbirc
|
||||
|
||||
${icbirc}/bin/icbirc -l 127.0.0.1 -s localhost -p 6644
|
||||
${icbirc}/bin/icbirc -l 127.0.0.1 -s localhost -p 6645
|
||||
${pkgs.openssh}/bin/ssh -NTL 7326:localhost:7326 \
|
||||
-oServerAliveInterval=60 \
|
||||
-oExitOnForwardFailure=yes \
|
||||
anonicb@slackers.openbsd.org
|
||||
''
|
@ -13,6 +13,8 @@ let
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7v+/xS8832iMqJHCWsxUZ8zYoMWoZhjj++e26g1fLT europa"
|
||||
];
|
||||
userBase = { openssh.authorizedKeys.keys = pubKeys; };
|
||||
icbIrcTunnel = pkgs.writeScriptBin "icb-irc-tunnel"
|
||||
(import ../../bins/icb-irc-tunnel.nix { inherit pkgs; inherit icbirc; });
|
||||
|
||||
in {
|
||||
_module.args.isUnstable = true;
|
||||
@ -30,6 +32,16 @@ in {
|
||||
|
||||
tailscale.sshOnly = true;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
weechat = super.weechat.override {
|
||||
configure = { availablePlugins, ... }: {
|
||||
scripts = with super.weechatScripts; [ highmon ];
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
sops.secrets = {
|
||||
synapse_signing_key = {
|
||||
owner = config.users.users.matrix-synapse.name;
|
||||
@ -119,6 +131,16 @@ in {
|
||||
group = "mcchunkie";
|
||||
};
|
||||
|
||||
systemd.services.icb-tunnel = {
|
||||
wantedBy = [ "network.target" ];
|
||||
after = [ "network.target" "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
User = "qbit";
|
||||
WorkingDirectory = "/home/qbit";
|
||||
ExecStart = "${icbIrcTunnel}/bin/icb-irc-tunnel";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.mcchunkie = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
@ -126,7 +148,6 @@ in {
|
||||
Group = "mcchunkie";
|
||||
Restart = "always";
|
||||
WorkingDirectory = "/var/lib/mcchunkie";
|
||||
RuntimeDirectory = "/var/lib/mcchunkie";
|
||||
ExecStart = "${mcchunkie}/bin/mcchunkie";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user