pointfichiers/hosts/OVHCloud/hardware-configuration.nix

33 lines
557 B
Nix
Raw Normal View History

{
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!"
'';
};
}