refactoring

This commit is contained in:
암냥 2026-07-05 13:36:31 +09:00
commit 3adc5e9f73
No known key found for this signature in database
40 changed files with 73 additions and 73 deletions

View file

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
virtualisation.libvirtd = {
enable = true;
dbus.enable = true;
};
users.groups.libvirtd.members = [ "imnyang" ];
services.cockpit = {
enable = true;
plugins = with pkgs; [
cockpit-machines
cockpit-files
cockpit-podman
];
openFirewall = true;
allowed-origins = [ "*" ];
};
environment.systemPackages = with pkgs; [
libvirt-dbus
virt-manager
virt-viewer
];
}

View file

@ -0,0 +1,4 @@
{ ... }:
{
virtualisation.docker.enable = true;
}

View file

@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
...
}:
{
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true; # Required for containers under podman-compose to be able to talk to each other.
};
};
environment.systemPackages = with pkgs; [
podman-compose
podman
podman-tui
];
users.users.imnyang = {
extraGroups = [
"podman"
];
};
}