os/modules/docker/default.nix
2024-05-27 10:58:57 +02:00

21 lines
318 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib; let
psCfg = config.pub-solar;
in {
virtualisation.docker.enable = true;
virtualisation.docker.package = pkgs.docker_26;
users.users."${psCfg.user.name}" = {
extraGroups = ["docker"];
};
environment.systemPackages = with pkgs; [
docker-compose
];
}