Migrate Nginx from microvm to proxmox LXC container

This commit is contained in:
Théo Barnouin 2024-10-13 18:12:54 +02:00
parent 7d969f0c99
commit 6ddb56f722
2 changed files with 9 additions and 10 deletions

View file

@ -1,12 +1,18 @@
{ config, pkgs, lib, inputs, ... }:
{ config, pkgs, lib, inputs, modulesPath, ... }:
{
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings.trusted-users = [ "root" "@wheel" ];
};
imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ];
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
networking = {
hostName = "${config.services.vm.hostname}";
firewall = {
enable = true;
allowedTCPPorts = [ 22 9002 ];