nix(loki): enable podman
This commit is contained in:
parent
2477d1ffbe
commit
a09d7632a5
@ -15,6 +15,7 @@
|
||||
./modules/authentik.nix
|
||||
./modules/gonic.nix
|
||||
./modules/attic.nix
|
||||
./modules/podman.nix
|
||||
|
||||
../../modules/base.nix
|
||||
../../modules/dnscrypt.nix
|
||||
|
27
nix/hosts/loki/modules/podman.nix
Normal file
27
nix/hosts/loki/modules/podman.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
virtualisation = {
|
||||
containers.storage.settings = {
|
||||
# configure for zfs.
|
||||
storage = {
|
||||
driver = "zfs";
|
||||
graphroot = "/var/lib/containers/storage";
|
||||
runroot = "/run/containers/storage";
|
||||
};
|
||||
};
|
||||
|
||||
## setup podman.
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
defaultNetwork.settings.dns_enable = true;
|
||||
};
|
||||
oci-containers = {
|
||||
## use podman as the default container engine.
|
||||
backend = "podman";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user