stockholm/old/modules/cd/default.nix

92 lines
1.8 KiB
Nix
Raw Normal View History

2015-07-10 18:46:12 +00:00
{ config, pkgs, ... }:
2015-03-19 22:04:35 +00:00
2015-06-18 23:35:37 +00:00
let
inherit (builtins) readFile;
in
2015-03-19 22:04:35 +00:00
{
imports =
[
{ users.extraUsers = import <secrets/extraUsers.nix>; }
2015-04-07 23:07:01 +00:00
./networking.nix
2015-06-19 19:46:05 +00:00
./users.nix
2015-04-07 23:26:30 +00:00
../tv/base.nix
2015-04-07 23:07:01 +00:00
../tv/base-cac-CentOS-7-64bit.nix
2015-07-10 18:58:55 +00:00
../tv/config/consul-server.nix
2015-04-07 23:07:01 +00:00
../tv/ejabberd.nix # XXX echtes modul
../tv/exim-smarthost.nix
2015-06-19 19:40:00 +00:00
../tv/git/public.nix
2015-04-07 23:07:01 +00:00
../tv/sanitize.nix
2015-07-10 18:46:12 +00:00
{
imports = [ ../tv/identity ];
tv.identity = {
enable = true;
self = config.tv.identity.hosts.cd;
};
}
2015-06-22 13:24:09 +00:00
{
imports = [ ../tv/iptables ];
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
"ssh"
"tinc"
"smtp"
"xmpp-client"
"xmpp-server"
];
input-retiolum-accept-new-tcp = [
"http"
];
};
}
{
imports = [ ../tv/retiolum ];
tv.retiolum = {
enable = true;
hosts = <retiolum-hosts>;
connectTo = [
"fastpoke"
"pigstarter"
"ire"
];
};
}
2015-03-19 22:04:35 +00:00
];
# "Developer 2" plan has two vCPUs.
nix.maxJobs = 2;
environment.systemPackages = with pkgs; [
2015-05-19 20:04:36 +00:00
git # required for ./deploy, clone_or_update
2015-03-19 22:04:35 +00:00
htop
iftop
iotop
2015-04-02 17:08:42 +00:00
iptables
2015-03-24 17:31:39 +00:00
mutt # for mv
2015-03-19 22:04:35 +00:00
nethogs
rxvt_unicode.terminfo
tcpdump
];
2015-03-24 17:30:57 +00:00
services.ejabberd-cd = {
enable = true;
};
2015-03-19 22:04:35 +00:00
services.journald.extraConfig = ''
SystemMaxUse=1G
RuntimeMaxUse=128M
'';
services.openssh = {
enable = true;
hostKeys = [
# XXX bits here make no science
{ bits = 8192; type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
];
permitRootLogin = "yes";
};
sound.enable = false;
}