...
This commit is contained in:
@@ -12,7 +12,7 @@ cd ~
|
||||
alias mg="mize get"
|
||||
alias mr="mize run"
|
||||
alias ms="mize set"
|
||||
alias md="mize dev"
|
||||
alias md="mize run dev"
|
||||
alias sci="mize run sci"
|
||||
|
||||
### nix build hosts
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
- 8008 vikunja todo (task.ppc.social)
|
||||
- 8009 oxi-cloud
|
||||
- 8010 ppc-site
|
||||
- 8011 ppc-site
|
||||
|
||||
## hosting container ips (on the interface br-proxy)
|
||||
- fusu 192.168.1.2
|
||||
@@ -481,6 +482,7 @@ in {
|
||||
{ name = "c2vi-tunes"; domain = "tunes.c2vi.dev"; host = "fasu"; port = 8001; middlewares = [ "oidc-c2vi-navidrome" ]; }
|
||||
{ name = "c2vi-lidarr"; domain = "lidarr.c2vi.dev"; host = "fasu"; port = 8000; middlewares = [ "oidc-c2vi-lidarr" ]; }
|
||||
{ name = "c2vi-spot"; domain = "spot.c2vi.dev"; host = "fasu"; port = 8006; middlewares = [ "oidc-c2vi-lidarr" ]; }
|
||||
{ name = "llm"; domain = "llm.ppc.social"; host = "ppc-hosting"; port = 8011; }
|
||||
|
||||
#{ name = "spacetime"; domain = "spacetime.ppc.social"; host = "ppc-hosting"; port = 8005; extraRouterConfig = {
|
||||
# rule = "Host(`spacetime.ppc.social`) && PathPrefix(`/v1/database`)";
|
||||
|
||||
@@ -41,48 +41,21 @@
|
||||
|
||||
in {
|
||||
|
||||
imports = [
|
||||
inputs.arion.nixosModules.arion
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
(createArionServiceManager "backup" "")
|
||||
#(createArionServiceManager "backup" "")
|
||||
pkgs.arion
|
||||
|
||||
# Do install the docker CLI to talk to podman.
|
||||
# Not needed when virtualisation.docker.enable = true;
|
||||
pkgs.docker-client
|
||||
#pkgs.docker-client
|
||||
|
||||
# add all the service managers
|
||||
];
|
||||
|
||||
# Arion works with Docker, but for NixOS-based containers, you need Podman
|
||||
# since NixOS 21.05.
|
||||
virtualisation.docker.enable = false;
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.podman.dockerSocket.enable = true;
|
||||
# https://github.com/containers/netavark/issues/274#issuecomment-4215665765
|
||||
virtualisation.containers.containersConf.settings = {
|
||||
network = {
|
||||
network_backend = "netavark";
|
||||
firewall_driver = "none";
|
||||
};
|
||||
};
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
users.extraUsers.me.extraGroups = ["podman"];
|
||||
users.extraUsers.server.extraGroups = ["podman"];
|
||||
|
||||
|
||||
virtualisation.arion = {
|
||||
backend = "podman-socket";
|
||||
};
|
||||
|
||||
virtualisation.arion.projects.backup.serviceName = "backup";
|
||||
virtualisation.arion.projects.backup.settings.services = backupContainers [
|
||||
{ name = "c2vi"; port = 8001; }
|
||||
{ name = "mom"; port = 8002; }
|
||||
{ name = "dad"; port = 8003; }
|
||||
{ name = "brother"; port = 8004; }
|
||||
];
|
||||
users.extraUsers.me.extraGroups = ["docker"];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user