infra/roles/common.nix
Jonas Chevalier 37e48b712e
move things around a bit ()
* keep ./services for instances

./profiles is for config-only modules

./services are like profiles, but configure a single instance of a
service. Those are fronted by Nginx as the load-balancer and have a DNS
entry as well.

* ci: build build03 as well

* move hydra to services

* move matterbridge to services

* move marvin-mk2 to services

* build01: share the remainder profiles

* build02: use the nix-community-cache

* fixup kexec

* rename profiles to roles

* README: sync with reality
2021-03-07 16:28:44 +00:00

47 lines
1,021 B
Nix

{ pkgs, lib, config, ... }:
{
imports = [
./nix-daemon.nix
./security.nix
./sshd.nix
./telegraf
./users.nix
./zfs.nix
];
environment.systemPackages = [
# for quick activity overview
pkgs.htop
# for users with TERM=xterm-termite
pkgs.termite.terminfo
];
# Nicer interactive shell
programs.fish.enable = true;
# And for the zsh peeps
programs.zsh.enable = true;
# Entropy gathering daemon
services.haveged.enable = true;
security.acme.email = "trash@nix-community.org";
security.acme.acceptTerms = true;
# Without configuration this unit will fail...
# Just disable it since we are using telegraf to monitor raid health.
systemd.services.mdmonitor.enable = false;
# enable "sar" system activity collection
services.sysstat.enable = true;
# Make debugging failed units easier
systemd.extraConfig = ''
DefaultStandardOutput=journal
DefaultStandardError=journal
'';
# The nix-community is global :)
time.timeZone = "UTC";
}