system/machines/magenta/default.nix

42 lines
876 B
Nix

{ config, pkgs, ... }:
let
data = import ../../data.nix;
in
{
imports = [
./hardware-configuration.nix
./networking.secret.nix # generated at runtime by nixos-infect
../modules/common.nix
../modules/nix.nix
../modules/fail2ban.nix
../modules/garbage-collector.nix
./services/traefik.nix
./services/mailserver.nix
./services/gitea.nix
];
boot.kernelPackages = pkgs.linuxPackages_6_1;
boot.cleanTmpDir = true;
zramSwap.enable = true;
networking.hostName = "magenta";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan;
security.acme = {
acceptTerms = true;
defaults.email = "dmitriy@pleshevski.ru";
};
# Enable docker
virtualisation.docker = {
enable = true;
liveRestore = false;
};
networking.firewall.allowedTCPPorts = [ 2377 ];
}