2023-12-15 19:44:33 +00:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
let
|
|
|
|
settings = import ./../settings.nix;
|
|
|
|
in
|
|
|
|
{
|
2023-12-02 09:47:09 +00:00
|
|
|
# enable rootless docker for more security
|
|
|
|
virtualisation.docker.rootless = {
|
|
|
|
enable = true;
|
|
|
|
setSocketVariable = true;
|
|
|
|
};
|
|
|
|
# regulary clean unused docker images
|
2023-12-15 19:44:33 +00:00
|
|
|
virtualisation.docker.autoPrune.enable = settings.virtualisation.docker-rootless.autoPrune;
|
2023-12-02 09:47:09 +00:00
|
|
|
}
|