NixOS/dev/docker-rootless.nix

10 lines
270 B
Nix
Raw Normal View History

{ pkgs, config, ... }: {
# enable rootless docker for more security
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};
# regulary clean unused docker images
virtualisation.docker.autoPrune.enable = true;
}