mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 07:24:10 +01:00
feat: idols-akane - use docker instead of podman
This commit is contained in:
@@ -7,28 +7,28 @@
|
||||
{
|
||||
imports = mylib.scanPaths ./.;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
podman-compose
|
||||
];
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# podman-compose
|
||||
# ];
|
||||
|
||||
virtualisation = {
|
||||
docker.enable = lib.mkForce false;
|
||||
podman = {
|
||||
enable = true;
|
||||
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||
dockerCompat = true;
|
||||
# Required for containers under podman-compose to be able to talk to each other.
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
# Periodically prune Podman resources
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
flags = [ "--all" ];
|
||||
};
|
||||
};
|
||||
docker.enable = true;
|
||||
# podman = {
|
||||
# enable = true;
|
||||
# # Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||
# dockerCompat = true;
|
||||
# # Required for containers under podman-compose to be able to talk to each other.
|
||||
# defaultNetwork.settings.dns_enabled = true;
|
||||
# # Periodically prune Podman resources
|
||||
# autoPrune = {
|
||||
# enable = true;
|
||||
# dates = "weekly";
|
||||
# flags = [ "--all" ];
|
||||
# };
|
||||
# };
|
||||
|
||||
oci-containers = {
|
||||
backend = "podman";
|
||||
backend = "docker";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
users.groups = {
|
||||
"${myvars.username}" = { };
|
||||
podman = { };
|
||||
docker = { };
|
||||
wireshark = { };
|
||||
# for android platform tools's udev rules
|
||||
adbusers = { };
|
||||
@@ -31,6 +32,7 @@
|
||||
"wheel"
|
||||
"networkmanager" # for nmtui / nm-connection-editor
|
||||
"podman"
|
||||
"docker"
|
||||
"wireshark"
|
||||
"adbusers" # android debugging
|
||||
"libvirtd" # virt-viewer / qemu
|
||||
|
||||
Reference in New Issue
Block a user