From 542d7f1d5c72e10638913a046cdaa91ddd9dd82e Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 12 Nov 2022 16:37:16 +0300 Subject: [PATCH] nix: use colored version for docker --- flake.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index e5847b7..2a52409 100644 --- a/flake.nix +++ b/flake.nix @@ -48,20 +48,19 @@ config = { Volumes."/data" = { }; WorkingDir = "/data"; - Entrypoint = [ "${vnetod}/bin/vnetod" ]; + Entrypoint = [ "${coloredVnetod}/bin/vnetod" ]; }; }; + + mkApp = prog: { + type = "app"; + program = "${vnetod}/bin/vnetod"; + }; in { apps = { - default = { - type = "app"; - program = "${vnetod}/bin/vnetod"; - }; - colored = { - type = "app"; - program = "${coloredVnetod}/bin/vnetod"; - }; + default = mkApp vnetod; + colored = mkApp coloredVnetod; }; packages = {