stockholm/modules/cd/default.nix

96 lines
1.8 KiB
Nix
Raw Normal View History

{ 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 =
[
2015-05-21 20:33:16 +00:00
<secrets/hashedPasswords.nix>
2015-04-07 23:07:01 +00:00
./networking.nix
2015-06-19 19:46:05 +00:00
./users.nix
2015-05-19 20:04:36 +00:00
../common/nixpkgs.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
../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-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;
2015-05-19 20:04:36 +00:00
nixpkgs = {
url = "https://github.com/NixOS/nixpkgs";
rev = "4c01e6d91993b6de128795f4fbdd25f6227fb870";
};
2015-03-19 22:04:35 +00:00
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
];
security.rtkit.enable = false;
services.cron.enable = false;
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.ntp.enable = false;
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;
}