infra/roles/common.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

2019-08-11 19:53:02 +01:00
{ pkgs, lib, config, ... }:
{
2021-01-21 16:28:48 +01:00
imports = [
2021-12-23 20:39:49 +01:00
./cachix-deploy
./nix-daemon.nix
2021-01-21 16:28:48 +01:00
./security.nix
./sshd.nix
./telegraf
./users.nix
./zfs.nix
2021-09-25 22:35:51 +02:00
./sops-nix.nix
2021-01-21 16:28:48 +01:00
];
2019-08-11 19:53:02 +01:00
2019-08-12 11:33:34 +02:00
environment.systemPackages = [
# for quick activity overview
pkgs.htop
];
2019-08-11 19:53:02 +01:00
# Nicer interactive shell
programs.fish.enable = true;
# And for the zsh peeps
programs.zsh.enable = true;
# Entropy gathering daemon
services.haveged.enable = true;
2021-03-04 10:55:37 +01:00
security.acme.email = "trash@nix-community.org";
security.acme.acceptTerms = true;
2021-02-17 23:31:22 +01:00
# Without configuration this unit will fail...
# Just disable it since we are using telegraf to monitor raid health.
systemd.services.mdmonitor.enable = false;
2019-08-12 11:33:34 +02:00
# enable "sar" system activity collection
services.sysstat.enable = true;
2019-08-11 19:53:02 +01:00
# Make debugging failed units easier
systemd.extraConfig = ''
DefaultStandardOutput=journal
DefaultStandardError=journal
'';
# The nix-community is global :)
time.timeZone = "UTC";
2022-01-09 15:56:36 +01:00
# speed-up evaluation & save disk space by disabling manpages
documentation.enable = false;
2019-08-11 19:53:02 +01:00
}