virtualization appears to be working?
This commit is contained in:
parent
fe10584683
commit
68b3c6f857
4 changed files with 11 additions and 27 deletions
|
|
@ -24,11 +24,9 @@
|
|||
spicy
|
||||
];
|
||||
|
||||
users.extraGroups.vboxusers.members = [ "jsutter" ];
|
||||
|
||||
environment.sessionVariables.LIBVIRT_DEFAULT_URI = [ "qemu:///system" ];
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
||||
boot.kernelModules = [ "bridge" ];
|
||||
|
||||
# Enable network-online.target
|
||||
systemd.services.network-online = {
|
||||
|
|
@ -36,21 +34,6 @@
|
|||
wantedBy = [ "network.target" ];
|
||||
};
|
||||
|
||||
# Configure networkd-wait-online
|
||||
systemd.network.networkd-wait-online = {
|
||||
enable = true;
|
||||
requiredFor = [ "br0" ];
|
||||
timeout = 30;
|
||||
};
|
||||
|
||||
# Define the bridge
|
||||
networking = {
|
||||
bridges.br0 = {
|
||||
interfaces = [ "eth0" "wlan0" ]; # Adjust as needed
|
||||
useDHCP = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Tie services to network-online.target
|
||||
systemd.services.libvirtd = {
|
||||
after = [ "network-online.target" ];
|
||||
|
|
@ -58,14 +41,15 @@
|
|||
};
|
||||
|
||||
# Optional: Add a debug hook
|
||||
systemd.services.network-debug = {
|
||||
systemd.services.network-debug = {
|
||||
description = "Log network status";
|
||||
serviceConfig = {
|
||||
ExecStart = "/bin/bash -c 'ip a && journalctl -u network.target'";
|
||||
# Use bash and provide full paths for commands
|
||||
ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.iproute2}/bin/ip a && journalctl -u network.target'";
|
||||
Type = "oneshot";
|
||||
};
|
||||
wantedBy = [ "network-online.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.allowedBridges =
|
||||
[ "br0" ];
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
./desktop/dev.nix
|
||||
./desktop/office.nix
|
||||
./desktop/gaming.nix
|
||||
./desktop/virtualization.nix
|
||||
];
|
||||
};
|
||||
aurora = nixpkgs.lib.nixosSystem {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
networking.bridges = {
|
||||
"br0" = {
|
||||
interfaces = [ "eth0" ];
|
||||
interfaces = [ "eth0" "wlan0" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@
|
|||
];
|
||||
services.udev.packages = [ pkgs.via ];
|
||||
|
||||
|
||||
networking.bridges = {
|
||||
"br0" = {
|
||||
interfaces = [ "wlan0" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue