nix-config/hosts/containers/mucbot/configuration.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2019-04-07 00:58:42 +02:00
{ config, pkgs, lib, ... }:
let
2021-02-22 11:45:12 +01:00
tiggerGit = builtins.fetchTarball
"https://github.com/astro/tigger/archive/master.tar.gz";
in {
imports = [
../../../lib/lxc-container.nix
../../../lib/shared.nix
../../../lib/admins.nix
"${tiggerGit}/module.nix"
];
2019-04-07 00:58:42 +02:00
networking.hostName = "mucbot";
2021-02-22 11:45:12 +01:00
networking.interfaces.eth0.ipv4.addresses = [{
address = "172.20.73.27";
prefixLength = 26;
}];
networking.defaultGateway = "172.20.73.1";
2021-02-22 11:45:12 +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";
};
2021-02-22 11:45:12 +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;
2021-02-22 11:45:12 +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?
}