moved virtualisation configuration to apps

This commit is contained in:
caleb 2024-03-26 11:19:56 -04:00
parent 6dbeecbd49
commit a9b3387db6
3 changed files with 32 additions and 43 deletions

View File

@ -17,13 +17,15 @@
tor-browser-bundle-bin
yubikey-manager-qt
gparted
hashcat
libsForQt5.kdeconnect-kde
obsidian
# flatpak
flatpak
gnome.gnome-software
# virtualisation
podman-compose
];
};
@ -54,4 +56,31 @@
# flatpak for bluebubbles client
services.flatpak.enable = true;
# podman
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
# enable libvirt
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd];
};
};
};
};
users.users.caleb.extraGroups = [ "libvirtd" ];
}

View File

@ -9,7 +9,6 @@
./application-configuration.nix
./software-development-configuration.nix
./school-configuration.nix
./virtualisation-configuration.nix
./faf-linux.nix
./winapps.nix
];
@ -57,6 +56,8 @@
"vscode"
"code"
"Oracle_VM_VirtualBox_Extension_Pack"
"obsidian"
];
# Enable the X11 windowing system.

View File

@ -1,41 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
podman-compose
docker-compose
];
virtualisation = {
podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
};
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
# enable libvirt
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd];
};
};
};
};
users.users.caleb.extraGroups = [ "libvirtd" "docker" ];
}