Adjust base and home packages

This commit is contained in:
DashieTM 2024-08-25 19:51:45 +02:00
parent a90a9c3a8e
commit 218b7dc4ca
8 changed files with 156 additions and 103 deletions

View file

@ -0,0 +1,34 @@
{
lib,
config,
options,
pkgs,
...
}:
{
options.mods.podman = {
enable = lib.mkOption {
default = true;
example = false;
type = lib.types.bool;
description = "Enables and configures podman";
};
};
config = lib.mkIf config.mods.podman.enable (
lib.optionalAttrs (options ? virtualisation.podman) {
environment.systemPackages = with pkgs; [
podman-tui
podman-compose
dive
];
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
}
);
}