hosts/flandre-m5p: enable libvirtd

This commit is contained in:
Lu Wang 2024-12-07 14:01:25 +08:00
parent 85cd4e61e5
commit e173247742
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU
2 changed files with 22 additions and 2 deletions

View file

@ -1,10 +1,16 @@
{
suites,
profiles,
mylib,
...
}:
{
imports = suites.server ++ (mylib.path.scanPaths ./. "default.nix");
imports =
suites.server
++ [
profiles.virtualization.libvirtd
]
++ (mylib.path.scanPaths ./. "default.nix");
system.stateVersion = "24.05";
}

View file

@ -1,4 +1,9 @@
{ profiles, lib, ... }:
{
profiles,
lib,
config,
...
}:
{
imports = with profiles; [
services.enthalpy
@ -6,6 +11,15 @@
services.enthalpy.ipsec.interfaces = [ "enp2s0" ];
networking.netns.enthalpy.forwardPorts = [
{
protocol = "tcp";
netns = "default";
source = "[::]:${toString config.networking.ports.ssh}";
target = "[::]:${toString config.networking.ports.ssh}";
}
];
systemd.network = {
enable = true;
wait-online.anyInterface = true;