rearrange podman

This commit is contained in:
iFargle 2023-12-15 20:04:15 +09:00
parent 85be4c8f0e
commit cc3e57f976
2 changed files with 15 additions and 13 deletions

View file

@ -1,7 +1,21 @@
{ lib, pkgs, ... }: {
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
# Required for container networking to be able to use names.
dns_enabled = true;
};
};
virtualisation.oci-containers.backend = "podman";
# Containers
imports = [
./podman/piaware.nix
];
environment.systemPackages = with pkgs; [ ctop ];
environment.systemPackages = [ pkgs.ctop ];
}

View file

@ -2,18 +2,6 @@
{ pkgs, lib, ... }:
{
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
# Required for container networking to be able to use names.
dns_enabled = true;
};
};
virtualisation.oci-containers.backend = "podman";
# Containers
virtualisation.oci-containers.containers."piaware" = {
image = "ghcr.io/sdr-enthusiasts/docker-piaware:latest";