2019-04-07 00:58:42 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
tiggerGit = builtins.fetchTarball https://github.com/astro/tigger/archive/master.tar.gz;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ ../../../lib/lxc-container.nix
|
|
|
|
../../../lib/shared.nix
|
2019-04-07 21:23:31 +02:00
|
|
|
../../../lib/admins.nix
|
2019-04-07 00:58:42 +02:00
|
|
|
"${tiggerGit}/module.nix"
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "mucbot";
|
2020-05-22 17:24:56 +02:00
|
|
|
networking.interfaces.eth0.ipv4.addresses = [ { address = "172.20.73.27"; prefixLength = 26; } ];
|
|
|
|
networking.defaultGateway = "172.20.73.1";
|
2019-11-30 22:45:22 +01:00
|
|
|
networking.nameservers = [ "172.20.73.8" "172.20.72.6" "172.20.72.10" "9.9.9.9" ];
|
2019-04-07 00:58:42 +02:00
|
|
|
|
2020-03-09 23:30:48 +01:00
|
|
|
users.users.tigger = {
|
|
|
|
createHome = true;
|
2020-03-09 23:37:19 +01:00
|
|
|
isNormalUser = true;
|
2020-03-09 23:30:48 +01:00
|
|
|
group = "tigger";
|
|
|
|
};
|
2020-03-09 23:33:45 +01:00
|
|
|
users.groups.tigger = {};
|
2019-04-07 00:58:42 +02:00
|
|
|
services.tigger = {
|
|
|
|
enable = true;
|
2020-03-09 23:30:48 +01:00
|
|
|
user = "tigger";
|
|
|
|
group = "tigger";
|
2019-04-07 00:58:42 +02:00
|
|
|
jid = import ../../../secrets/hosts/mucbot/jabber-jid.nix;
|
|
|
|
password = import ../../../secrets/hosts/mucbot/jabber-password.nix;
|
2020-03-09 22:30:55 +01:00
|
|
|
mucs = [ "c3d2@chat.c3d2.de/Astrobot" "international@chat.c3d2.de/Astrobot" ];
|
2019-04-07 00:58:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# This value determines the NixOS release with which your system is to be
|
|
|
|
# compatible, in order to avoid breaking some software such as database
|
|
|
|
# servers. You should change this only after NixOS release notes say you
|
|
|
|
# should.
|
|
|
|
system.stateVersion = "18.09"; # Did you read the comment?
|
|
|
|
}
|