dotfiles/user-modules/systemwide/docker.nix

18 lines
261 B
Nix
Raw Normal View History

2025-01-23 23:28:22 +00:00
{
lib,
config,
pkgs,
...
}:
with lib;
let
enabled = any (user: user.modules.docker.enable) (attrValues config.home-manager.users);
in
{
config = mkIf enabled {
virtualisation.docker.enable = true;
machine.sudo-groups = [ "docker" ];
};
}