hosts/flandre-m5p: enable libvirtd
This commit is contained in:
parent
85cd4e61e5
commit
e173247742
|
@ -1,10 +1,16 @@
|
||||||
{
|
{
|
||||||
suites,
|
suites,
|
||||||
|
profiles,
|
||||||
mylib,
|
mylib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = suites.server ++ (mylib.path.scanPaths ./. "default.nix");
|
imports =
|
||||||
|
suites.server
|
||||||
|
++ [
|
||||||
|
profiles.virtualization.libvirtd
|
||||||
|
]
|
||||||
|
++ (mylib.path.scanPaths ./. "default.nix");
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ profiles, lib, ... }:
|
{
|
||||||
|
profiles,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = with profiles; [
|
imports = with profiles; [
|
||||||
services.enthalpy
|
services.enthalpy
|
||||||
|
@ -6,6 +11,15 @@
|
||||||
|
|
||||||
services.enthalpy.ipsec.interfaces = [ "enp2s0" ];
|
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 = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wait-online.anyInterface = true;
|
wait-online.anyInterface = true;
|
||||||
|
|
Loading…
Reference in a new issue