32 lines
557 B
Nix
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!"
|
|
'';
|
|
};
|
|
}
|