Adjust base and home packages
This commit is contained in:
parent
a90a9c3a8e
commit
218b7dc4ca
8 changed files with 156 additions and 103 deletions
34
modules/programs/podman.nix
Normal file
34
modules/programs/podman.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue