modules: system: add podman

This commit is contained in:
Bruno BELANYI 2022-01-12 18:22:43 +01:00
parent 1908897abc
commit e6fe5e57c9
3 changed files with 27 additions and 0 deletions

View File

@ -8,6 +8,7 @@
./language
./nix
./packages
./podman
./users
];
}

View File

@ -0,0 +1,25 @@
# Podman related settings
{ config, inputs, lib, options, pkgs, ... }:
let
cfg = config.my.system.podman;
in
{
options.my.system.podman = with lib; {
enable = mkEnableOption "podman configuration";
};
config = lib.mkIf cfg.enable {
virtualisation.podman = {
enable = true;
# Use fake `docker` command to redirect to `podman`
dockerCompat = true;
# Expose a docker-like socket
dockerSocket.enable = true;
# Allow DNS resolution in the default network
defaultNetwork.dnsname.enable = true;
};
};
}

View File

@ -30,6 +30,7 @@ in
"media" # access to media files
"networkmanager" # wireless configuration
"plugdev" # usage of ZSA keyboard tools
"podman" # usage of `podman` socket
"video" # screen control
"wheel" # `sudo` for the user.
];