2024-07-06 16:01:17 +01:00
|
|
|
{ pkgs, inputs, ... }:
|
|
|
|
{
|
2024-07-05 18:58:03 +01:00
|
|
|
|
|
|
|
imports = [ inputs.arion.nixosModules.arion ];
|
2024-07-06 16:01:17 +01:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.arion
|
|
|
|
];
|
|
|
|
|
2024-07-05 18:58:03 +01:00
|
|
|
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
|
|
|
# since NixOS 21.05.
|
|
|
|
virtualisation = {
|
|
|
|
podman = {
|
|
|
|
enable = true;
|
|
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
|
|
};
|
|
|
|
docker = {
|
2024-07-06 16:01:17 +01:00
|
|
|
enable = true;
|
2024-07-05 18:58:03 +01:00
|
|
|
storageDriver = "btrfs";
|
|
|
|
rootless = {
|
|
|
|
enable = true;
|
|
|
|
setSocketVariable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|