nixos-config/machines/okarin2/configuration.nix

39 lines
626 B
Nix
Raw Normal View History

2023-12-21 15:06:16 +01:00
# SPDX-FileCopyrightText: 2023-2024 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules
];
sbruder = {
nginx.hardening.enable = true;
full = false;
wireguard.home.enable = true;
};
networking.hostName = "okarin2";
system.stateVersion = "23.11";
services.nginx = {
enable = true;
virtualHosts."okarin2.sbruder.de" = {
enableACME = true;
forceSSL = true;
root = pkgs.sbruder.imprint;
};
};
networking.firewall.allowedTCPPorts = [
80
443
];
}