2023-04-30 00:12:25 +03:00
|
|
|
{ pkgs, ... }:
|
2022-10-13 07:47:31 +03:00
|
|
|
|
|
|
|
let
|
2023-03-18 16:47:02 +03:00
|
|
|
data = import ../../../data.nix;
|
2022-10-13 07:47:31 +03:00
|
|
|
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
|
|
|
|
2023-03-31 17:40:22 +03:00
|
|
|
../../modules/nix.nix
|
2023-03-18 16:47:02 +03:00
|
|
|
../../shared/common.nix
|
|
|
|
../../shared/fail2ban.nix
|
|
|
|
../../shared/garbage-collector.nix
|
|
|
|
../../shared/docker-swarm.nix
|
2022-10-20 01:28:29 +03:00
|
|
|
|
2022-10-18 00:42:23 +03:00
|
|
|
./services/mailserver.nix
|
|
|
|
./services/gitea.nix
|
2023-03-09 14:15:44 +03:00
|
|
|
./services/traefik.nix
|
|
|
|
./services/woodpecker
|
2022-10-13 07:47:31 +03:00
|
|
|
];
|
|
|
|
|
2023-03-03 15:22:57 +03:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
2023-05-24 11:42:28 +03:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2023-03-03 15:22:57 +03:00
|
|
|
|
2022-10-13 07:47:31 +03:00
|
|
|
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";
|
|
|
|
};
|
2023-03-05 16:47:46 +03:00
|
|
|
|
2022-10-13 07:47:31 +03:00
|
|
|
}
|