mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
15 lines
398 B
Nix
15 lines
398 B
Nix
{ ... }:
|
|
{
|
|
flake.nixosModules.service-docker =
|
|
{ ... }:
|
|
{
|
|
# Rootless: the daemon runs as the user, so access to it isn't root
|
|
# (membership in the `docker` group of a rootful daemon would be).
|
|
# setSocketVariable points DOCKER_HOST at the user's socket.
|
|
virtualisation.docker.rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
};
|
|
}
|