nix-infra/configuration/common/default.nix

55 lines
983 B
Nix
Raw Normal View History

{ pkgs, ... }:
2023-07-10 15:30:51 +02:00
{
imports = [
2023-07-15 21:34:33 +02:00
./prometheus-node-exporter.nix
./nginx.nix
2023-07-13 20:56:30 +02:00
../../users/colmena-deploy
2023-07-10 15:30:51 +02:00
../../users/yuri
];
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
console = {
keyMap = "de-latin1";
};
security.sudo.wheelNeedsPassword = false;
nix.settings = {
2023-07-13 20:56:30 +02:00
trusted-users = [ "colmena-deploy" ];
2023-07-10 15:30:51 +02:00
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
environment.systemPackages = with pkgs; [
htop
parted
tmux
nano
];
services.openssh = {
enable = true;
openFirewall = true;
2023-07-10 15:30:51 +02:00
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
security.acme = {
defaults.email = "acme@grzb.de";
acceptTerms = true;
};
2023-07-10 15:30:51 +02:00
services.fstrim.enable = true;
}