os/modules/docker/default.nix

21 lines
308 B
Nix

{
lib,
config,
pkgs,
...
}:
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
];
}