2022-11-22 11:35:42 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2021-05-30 19:10:28 +00:00
|
|
|
psCfg = config.pub-solar;
|
2022-11-22 11:35:42 +00:00
|
|
|
in {
|
2023-11-10 18:48:06 +00:00
|
|
|
virtualisation.docker.enable = true;
|
2024-05-27 08:58:57 +00:00
|
|
|
virtualisation.docker.package = pkgs.docker_26;
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
users.users."${psCfg.user.name}" = {
|
|
|
|
extraGroups = ["docker"];
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
2023-11-10 18:48:06 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
docker-compose
|
|
|
|
];
|
2021-05-30 19:10:28 +00:00
|
|
|
}
|