Moved over containers
This commit is contained in:
1 parent
a86fd67f5a
commit
1d0188e199
5 files changed
+6
-10
No files matched your search
@@ -10,12 +10,12 @@ with lib;
|
||||
options = {
|
||||
skyg.common.containers = {
|
||||
runtime = mkOption {
|
||||
description = "DOcker vs podman";
|
||||
description = "Docker vs podman";
|
||||
type = types.str;
|
||||
default = "docker";
|
||||
};
|
||||
enableOnBoot = mkOption {
|
||||
type = types.boolean;
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
localDockerRegistries = mkOption {
|
||||
|
||||
@@ -4,7 +4,7 @@ let
|
||||
cfg = config.skyg.common.containers;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.runtime == "docker" {
|
||||
config = lib.mkIf (cfg.runtime == "docker") {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
|
||||
@@ -3,7 +3,7 @@ let
|
||||
cfg = config.skyg.common.containers;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.runtime == "podman" {
|
||||
config = lib.mkIf (cfg.runtime == "podman") {
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
virtualisation = {
|
||||
podman = {
|
||||
|
||||
Reference in new issue
Block a user