mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2024-12-12 14:31:50 +01:00
17 lines
464 B
Nix
17 lines
464 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
|
# since NixOS 21.05.
|
|
virtualisation.docker.enable = false;
|
|
virtualisation.podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
dockerSocket.enable = true ;
|
|
autoPrune.flags = ["--all"];
|
|
autoPrune.enable = true;
|
|
defaultNetwork.settings = { dns_enabled = true; };
|
|
};
|
|
|
|
users.extraUsers.gunalx.extraGroups = ["podman"];
|
|
}
|