yep, more dotfiles
at main 455 B view raw
1{ config 2, lib 3, ... 4}: 5 6let 7 cfg = config.local.fragment.security; 8in 9{ 10 options.local.fragment.virtualisation.enable = lib.mkEnableOption '' 11 Virtualisation related 12 - Docker 13 ''; 14 15 config = lib.mkIf cfg.enable { 16 virtualisation.docker = { 17 enable = true; 18 19 rootless = { 20 enable = true; 21 setSocketVariable = true; 22 }; 23 24 autoPrune = { 25 enable = true; 26 dates = "weekly"; 27 }; 28 }; 29 }; 30}