2022-10-15 08:39:47 +03:00
|
|
|
{ config, pkgs, ... }:
|
2022-10-13 07:47:31 +03:00
|
|
|
|
|
|
|
let
|
|
|
|
data = import ../../data.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2023-03-02 13:09:07 +03:00
|
|
|
./networking.secret.nix # generated at runtime by nixos-infect
|
2022-10-20 01:28:29 +03:00
|
|
|
|
2022-10-13 07:47:31 +03:00
|
|
|
../modules/common.nix
|
2022-10-13 23:11:12 +03:00
|
|
|
../modules/nix.nix
|
2022-10-15 08:39:47 +03:00
|
|
|
../modules/nginx.nix
|
2023-03-02 13:09:07 +03:00
|
|
|
../modules/fail2ban.nix
|
2022-10-20 01:28:29 +03:00
|
|
|
|
2022-10-18 00:42:23 +03:00
|
|
|
./services/mailserver.nix
|
|
|
|
./services/gitea.nix
|
2022-10-13 07:47:31 +03:00
|
|
|
];
|
|
|
|
|
2023-03-03 15:22:57 +03:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
|
|
|
|
2022-10-13 07:47:31 +03:00
|
|
|
boot.cleanTmpDir = true;
|
|
|
|
zramSwap.enable = true;
|
2023-03-02 13:09:07 +03:00
|
|
|
|
2022-10-13 07:47:31 +03:00
|
|
|
networking.hostName = "magenta";
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan;
|
2022-10-13 23:11:12 +03:00
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "dmitriy@pleshevski.ru";
|
|
|
|
};
|
2022-10-13 07:47:31 +03:00
|
|
|
}
|