Docker: Simplify docker module by making usernames adjustable

This commit is contained in:
2026-06-18 16:20:07 +02:00
parent 7fc9d10092
commit 1cf44c97cc
3 changed files with 9 additions and 8 deletions
+7 -1
View File
@@ -1,8 +1,14 @@
{
flake.modules.nixos.docker = {
config.flake.factory.docker = users: { lib, ... }: {
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
users.users =
lib.genAttrs
users
(_: {
extraGroups = [ "docker" ];
});
};
}