2024-12-07 20:46:15 -05:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2021-03-07 22:05:33 -05:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./networking.nix # generated at runtime by nixos-infect
|
2023-12-15 22:28:14 -05:00
|
|
|
../../modules/base/nixos.nix
|
2023-03-18 23:40:44 -04:00
|
|
|
|
|
|
|
../../modules/akkoma
|
|
|
|
../../modules/akkoma/nginx.nix
|
2021-07-09 22:59:33 -04:00
|
|
|
../../modules/coredns
|
2021-07-27 19:42:11 -04:00
|
|
|
../../modules/code-server/nginx.nix
|
2022-06-30 17:43:11 -04:00
|
|
|
../../modules/drone/nginx.nix
|
2021-10-13 21:11:36 -04:00
|
|
|
../../modules/gitea/nginx.nix
|
2021-07-14 22:49:45 -04:00
|
|
|
../../modules/home-assistant/nginx.nix
|
2021-10-30 23:33:26 -04:00
|
|
|
../../modules/ipfs/gateway.nix
|
2021-06-07 21:15:08 -04:00
|
|
|
../../modules/matrix/nginx.nix
|
2022-10-10 21:54:45 -04:00
|
|
|
../../modules/minecraft/proxy.nix
|
2023-03-18 23:40:44 -04:00
|
|
|
../../modules/sops
|
2021-03-07 22:05:33 -05:00
|
|
|
];
|
|
|
|
|
2023-04-27 11:05:10 -04:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2021-03-07 22:05:33 -05:00
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Toronto";
|
|
|
|
|
2023-09-10 14:27:05 -04:00
|
|
|
networking = {
|
|
|
|
hostName = "socrates";
|
|
|
|
firewall = {
|
|
|
|
allowPing = true;
|
2024-12-07 20:46:15 -05:00
|
|
|
allowedTCPPorts = [
|
|
|
|
80
|
|
|
|
443
|
|
|
|
];
|
2023-09-10 14:27:05 -04:00
|
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
|
|
checkReversePath = "loose";
|
|
|
|
};
|
|
|
|
};
|
2022-05-13 16:55:34 -04:00
|
|
|
|
|
|
|
nix = {
|
2024-12-07 20:46:15 -05:00
|
|
|
settings.trusted-users = [
|
|
|
|
"@wheel"
|
|
|
|
"root"
|
|
|
|
];
|
2022-05-13 16:55:34 -04:00
|
|
|
};
|
2021-03-07 22:05:33 -05:00
|
|
|
|
2023-09-10 14:27:05 -04:00
|
|
|
security = {
|
|
|
|
sudo.wheelNeedsPassword = false;
|
2023-09-10 16:16:14 -04:00
|
|
|
acme.acceptTerms = true;
|
|
|
|
acme.defaults.email = "walkah@walkah.net";
|
2023-09-10 14:27:05 -04:00
|
|
|
};
|
2021-03-07 22:05:33 -05:00
|
|
|
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ0mE4MyMnfd1b2nlBJT7kpZ6Vov+ILuGNfzdp5ZBNQe walkah@walkah.net"
|
|
|
|
];
|
|
|
|
|
2022-03-02 22:29:38 -05:00
|
|
|
environment.systemPackages = with pkgs; [ ipfs-migrator ];
|
2021-03-07 22:05:33 -05:00
|
|
|
|
2021-07-09 22:59:33 -04:00
|
|
|
walkah.coredns = {
|
|
|
|
enable = true;
|
|
|
|
addr = "100.103.57.96";
|
|
|
|
};
|
|
|
|
|
2021-06-30 22:12:21 -04:00
|
|
|
services = {
|
|
|
|
nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
};
|
2021-03-07 22:05:33 -05:00
|
|
|
};
|
|
|
|
}
|