basic modules

This commit is contained in:
2026-06-21 21:19:52 -05:00
parent 2f65730e2e
commit a537f5236d
21 changed files with 369 additions and 48 deletions
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./podman.nix
./qemu.nix
];
}
+37
View File
@@ -0,0 +1,37 @@
{ pkgs, ... }:
{
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
# For rootless containers
security.unprivilegedUsernsClone = true;
users.users.river = {
subUidRanges = [
{
startUid = 100000;
count = 65536;
}
];
subGidRanges = [
{
startGid = 100000;
count = 65536;
}
];
extraGroups = [
"podman"
];
};
environment.systemPackages = with pkgs; [
podman
podman-compose
];
}
+25
View File
@@ -0,0 +1,25 @@
{ ... }:
{
virtualisation.spiceUSBRedirection.enable = true;
virtualisation.libvirtd = {
enable = true;
qemu = {
ovmf.enable = true;
swtpm.enable = true;
};
};
programs.virt-manager.enable = true;
users.users.river.extraGroups = [
"libvirtd"
"kvm"
];
boot.kernelModules = [
"kvm-intel"
"kvm-amd"
];
}