Moved container config

This commit is contained in:
ari committed 2024-08-18 21:19:08 -04:00
1 parent 818e0f3ff3
commit a86fd67f5a
7 files changed
+67 -46

No files matched your search

@@ -0,0 +1,21 @@
{ config, pkgs, lib, ... }:
let
cfg = config.skyg.common.containers;
in
{
config = lib.mkIf cfg.runtime == "docker" {
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
enableOnBoot = cfg.enableOnBoot;
liveRestore = false;
daemon.settings = {
insecure-registries = cfg.localDockerRegistries;
};
};
environment.systemPackages = with pkgs; [ docker-compose ];
users.users.${config.skyg.user.name}.extraGroups = [ "docker" ];
virtualisation.oci-containers.backend = "docker";
};
}