added podman and shortcut for nixos rebuilds

This commit is contained in:
2026-08-16 11:16:11 -07:00
parent da513216a3
commit 8f61297dcb
8 changed files with 186 additions and 31 deletions

64
modules/apps/virt.nix Normal file
View File

@@ -0,0 +1,64 @@
{ pkgs, ... }:
{
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
};
};
incus = {
enable = true;
ui.enable = true;
};
spiceUSBRedirection.enable = true;
};
networking.nftables.enable = true;
programs.virt-manager.enable = true;
users.users.anish.extraGroups = [
"libvirtd"
"kvm"
"incus-admin"
];
environment.systemPackages = with pkgs; [
# Container management & inspection
dive
podman-tui
docker-compose
podman-compose
lazydocker
ctop
skopeo
buildah
# Distro isolation & integration
distrobox
boxbuddy
# Virtual machines & tools
qemu_kvm
virt-manager
virt-viewer
spice
spice-gtk
spice-protocol
virtio-win
win-spice
quickemu
quickgui
vagrant
];
}