Skip to content

Commit

Permalink
test: fix auto-formatted output due to nixfmt change
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Nov 24, 2024
1 parent 5f67fc0 commit a81c2e5
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 34 deletions.
68 changes: 51 additions & 17 deletions testdata/TestBasicAutoFormat.docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"traefik.http.routers.jellyseerr.rule" = "Host(`requests.hello.us`)";
"traefik.http.routers.jellyseerr.tls.certresolver" = "htpc";
};
dependsOn = [ "myproject-sabnzbd" ];
dependsOn = [
"myproject-sabnzbd"
];
log-driver = "journald";
extraOptions = [
"--cpus=1.5"
Expand All @@ -53,10 +55,18 @@
unitConfig = {
StartLimitIntervalSec = lib.mkOverride 90 120;
};
after = [ "docker-volume-myproject_books.service" ];
requires = [ "docker-volume-myproject_books.service" ];
partOf = [ "docker-compose-myproject-root.target" ];
wantedBy = [ "docker-compose-myproject-root.target" ];
after = [
"docker-volume-myproject_books.service"
];
requires = [
"docker-volume-myproject_books.service"
];
partOf = [
"docker-compose-myproject-root.target"
];
wantedBy = [
"docker-compose-myproject-root.target"
];
};
virtualisation.oci-containers.containers."myproject-sabnzbd" = {
image = "lscr.io/linuxserver/sabnzbd";
Expand Down Expand Up @@ -108,8 +118,12 @@
"docker-network-myproject_default.service"
"docker-volume-storage.service"
];
partOf = [ "docker-compose-myproject-root.target" ];
wantedBy = [ "docker-compose-myproject-root.target" ];
partOf = [
"docker-compose-myproject-root.target"
];
wantedBy = [
"docker-compose-myproject-root.target"
];
};
virtualisation.oci-containers.containers."photoprism-mariadb" = {
image = "docker.io/library/mariadb:10.9";
Expand Down Expand Up @@ -148,10 +162,18 @@
unitConfig = {
StartLimitIntervalSec = lib.mkOverride 90 "infinity";
};
after = [ "docker-volume-photos.service" ];
requires = [ "docker-volume-photos.service" ];
partOf = [ "docker-compose-myproject-root.target" ];
wantedBy = [ "docker-compose-myproject-root.target" ];
after = [
"docker-volume-photos.service"
];
requires = [
"docker-volume-photos.service"
];
partOf = [
"docker-compose-myproject-root.target"
];
wantedBy = [
"docker-compose-myproject-root.target"
];
};
virtualisation.oci-containers.containers."torrent-client" = {
image = "docker.io/haugene/transmission-openvpn";
Expand All @@ -176,7 +198,9 @@
"/var/volumes/transmission/scripts:/scripts:rw"
"storage:/storage:rw"
];
ports = [ "9091:9091/tcp" ];
ports = [
"9091:9091/tcp"
];
labels = {
"autoheal" = "true";
"compose2nix.settings.autoStart" = "false";
Expand All @@ -186,7 +210,9 @@
"traefik.http.routers.transmission.tls.certresolver" = "htpc";
"traefik.http.services.transmission.loadbalancer.server.port" = "9091";
};
dependsOn = [ "myproject-sabnzbd" ];
dependsOn = [
"myproject-sabnzbd"
];
log-driver = "journald";
autoStart = false;
extraOptions = [
Expand Down Expand Up @@ -246,9 +272,13 @@
"traefik.http.routers.traefik.service" = "api@internal";
"traefik.http.routers.traefik.tls.certresolver" = "htpc";
};
dependsOn = [ "sabnzbd" ];
dependsOn = [
"sabnzbd"
];
log-driver = "journald";
extraOptions = [ "--network=container:sabnzbd" ];
extraOptions = [
"--network=container:sabnzbd"
];
};
systemd.services."docker-traefik" = {
serviceConfig = {
Expand All @@ -257,8 +287,12 @@
unitConfig = {
AllowIsolate = lib.mkOverride 90 true;
};
partOf = [ "docker-compose-myproject-root.target" ];
wantedBy = [ "docker-compose-myproject-root.target" ];
partOf = [
"docker-compose-myproject-root.target"
];
wantedBy = [
"docker-compose-myproject-root.target"
];
};

# Networks
Expand Down
68 changes: 51 additions & 17 deletions testdata/TestBasicAutoFormat.podman.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
"traefik.http.routers.jellyseerr.rule" = "Host(`requests.hello.us`)";
"traefik.http.routers.jellyseerr.tls.certresolver" = "htpc";
};
dependsOn = [ "myproject-sabnzbd" ];
dependsOn = [
"myproject-sabnzbd"
];
log-driver = "journald";
extraOptions = [
"--cpus=1.5"
Expand All @@ -61,10 +63,18 @@
unitConfig = {
StartLimitIntervalSec = lib.mkOverride 90 120;
};
after = [ "podman-volume-myproject_books.service" ];
requires = [ "podman-volume-myproject_books.service" ];
partOf = [ "podman-compose-myproject-root.target" ];
wantedBy = [ "podman-compose-myproject-root.target" ];
after = [
"podman-volume-myproject_books.service"
];
requires = [
"podman-volume-myproject_books.service"
];
partOf = [
"podman-compose-myproject-root.target"
];
wantedBy = [
"podman-compose-myproject-root.target"
];
};
virtualisation.oci-containers.containers."myproject-sabnzbd" = {
image = "lscr.io/linuxserver/sabnzbd";
Expand Down Expand Up @@ -113,8 +123,12 @@
"podman-network-myproject_default.service"
"podman-volume-storage.service"
];
partOf = [ "podman-compose-myproject-root.target" ];
wantedBy = [ "podman-compose-myproject-root.target" ];
partOf = [
"podman-compose-myproject-root.target"
];
wantedBy = [
"podman-compose-myproject-root.target"
];
};
virtualisation.oci-containers.containers."photoprism-mariadb" = {
image = "docker.io/library/mariadb:10.9";
Expand Down Expand Up @@ -151,10 +165,18 @@
unitConfig = {
StartLimitIntervalSec = lib.mkOverride 90 "infinity";
};
after = [ "podman-volume-photos.service" ];
requires = [ "podman-volume-photos.service" ];
partOf = [ "podman-compose-myproject-root.target" ];
wantedBy = [ "podman-compose-myproject-root.target" ];
after = [
"podman-volume-photos.service"
];
requires = [
"podman-volume-photos.service"
];
partOf = [
"podman-compose-myproject-root.target"
];
wantedBy = [
"podman-compose-myproject-root.target"
];
};
virtualisation.oci-containers.containers."torrent-client" = {
image = "docker.io/haugene/transmission-openvpn";
Expand All @@ -179,7 +201,9 @@
"/var/volumes/transmission/scripts:/scripts:rw"
"storage:/storage:rw"
];
ports = [ "9091:9091/tcp" ];
ports = [
"9091:9091/tcp"
];
labels = {
"autoheal" = "true";
"compose2nix.settings.autoStart" = "false";
Expand All @@ -189,7 +213,9 @@
"traefik.http.routers.transmission.tls.certresolver" = "htpc";
"traefik.http.services.transmission.loadbalancer.server.port" = "9091";
};
dependsOn = [ "myproject-sabnzbd" ];
dependsOn = [
"myproject-sabnzbd"
];
log-driver = "journald";
autoStart = false;
extraOptions = [
Expand Down Expand Up @@ -248,9 +274,13 @@
"traefik.http.routers.traefik.service" = "api@internal";
"traefik.http.routers.traefik.tls.certresolver" = "htpc";
};
dependsOn = [ "sabnzbd" ];
dependsOn = [
"sabnzbd"
];
log-driver = "journald";
extraOptions = [ "--network=container:sabnzbd" ];
extraOptions = [
"--network=container:sabnzbd"
];
};
systemd.services."podman-traefik" = {
serviceConfig = {
Expand All @@ -259,8 +289,12 @@
unitConfig = {
AllowIsolate = lib.mkOverride 90 true;
};
partOf = [ "podman-compose-myproject-root.target" ];
wantedBy = [ "podman-compose-myproject-root.target" ];
partOf = [
"podman-compose-myproject-root.target"
];
wantedBy = [
"podman-compose-myproject-root.target"
];
};

# Networks
Expand Down

0 comments on commit a81c2e5

Please sign in to comment.