pointfichiers/hosts/OVHCloud/hardware-configuration.nix
2024-09-26 11:50:00 +02:00

32 lines
557 B
Nix

{
modulesPath,
inputs,
pkgs,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
./disko-config.nix
];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
# Firewall
networking.nftables.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = [22 80 443];
};
# Proxy
services.caddy = {
enable = true;
package = inputs.caddy.packages.${pkgs.system}.caddy;
virtualHosts."localhost".extraConfig = ''
respond "Hello, world!"
'';
};
}