Docker: Simplify docker module by making usernames adjustable

This commit is contained in:
Weckyy702 committed 2026-06-18 16:20:07 +02:00
1 parent 7fc9d10092
commit 1cf44c97cc
3 files changed
+9 -8

No files matched your search

+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" ];
});
};
}