convert containers to docker

This commit is contained in:
♥ Minnie ♥ 2023-07-27 20:13:14 +08:00
parent a08107008f
commit 06777a0087
12 changed files with 5 additions and 11 deletions

View file

@ -148,7 +148,7 @@
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.admin = { users.users.admin = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "podman" ]; extraGroups = [ "networkmanager" "wheel" "docker" ];
shell = pkgs.zsh; shell = pkgs.zsh;
openssh.authorizedKeys.keyFiles = [ ../fuchsia/id_ed25519_sk.pub ]; openssh.authorizedKeys.keyFiles = [ ../fuchsia/id_ed25519_sk.pub ];
}; };

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
# Import our containers.
imports = [ imports = [
./homepage ./homepage
./pihole ./pihole
@ -13,4 +14,7 @@
./minecraft ./minecraft
./traefik ./traefik
]; ];
# Set docker as container implementation.
virtualisation.oci-containers.backend = "docker";
} }

View file

@ -10,6 +10,5 @@
"/srv/data:/srv/data:ro" "/srv/data:/srv/data:ro"
]; ];
ports = [ "3000:3000" ]; ports = [ "3000:3000" ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -12,6 +12,5 @@
environment = { environment = {
MEMORYSIZE = "1G"; MEMORYSIZE = "1G";
}; };
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -19,7 +19,6 @@
WEBPASSWORD_FILE = "/secrets/admin-password"; WEBPASSWORD_FILE = "/secrets/admin-password";
DNSMASQ_LISTENING = "all"; DNSMASQ_LISTENING = "all";
}; };
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -10,6 +10,5 @@
"/srv/data/media:/data/media:ro" "/srv/data/media:/data/media:ro"
]; ];
ports = [ "32400:32400" ]; ports = [ "32400:32400" ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -10,6 +10,5 @@
"/srv/data:/data" "/srv/data:/data"
]; ];
ports = [ "9696:9696" ]; ports = [ "9696:9696" ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -13,6 +13,5 @@
"8383:8080" "8383:8080"
"32372:32372" "32372:32372"
]; ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -10,6 +10,5 @@
"/srv/data:/data" "/srv/data:/data"
]; ];
ports = [ "7878:7878" ]; ports = [ "7878:7878" ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -8,6 +8,5 @@
volumes = [ volumes = [
"/srv/containers/recyclarr:/config" "/srv/containers/recyclarr:/config"
]; ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -10,6 +10,5 @@
"/srv/data:/data" "/srv/data:/data"
]; ];
ports = [ "8989:8989" ]; ports = [ "8989:8989" ];
extraOptions = [ "--pull=newer" ];
}; };
} }

View file

@ -20,6 +20,5 @@
CF_API_EMAIL_FILE = "/secrets/cf-api-email"; CF_API_EMAIL_FILE = "/secrets/cf-api-email";
CF_API_KEY_FILE = "/secrets/cf-api-key"; CF_API_KEY_FILE = "/secrets/cf-api-key";
}; };
extraOptions = [ "--pull=newer" ];
}; };
} }