Moved container config
This commit is contained in:
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";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user