nix: use colored version by default

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-12 17:07:01 +03:00
parent f4d4d46390
commit 9eebd41db0
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -39,8 +39,8 @@
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
vnetod = pkgs.callPackage mkVnetod { }; vnetod = pkgs.callPackage mkVnetod { vnetodFeatures = [ "color" ]; };
coloredVnetod = pkgs.callPackage mkVnetod { vnetodFeatures = [ "color" ]; }; minimalVnetod = pkgs.callPackage mkVnetod { };
docker = pkgs.dockerTools.buildLayeredImage { docker = pkgs.dockerTools.buildLayeredImage {
name = "pleshevskiy/vnetod"; name = "pleshevskiy/vnetod";
@ -48,7 +48,7 @@
config = { config = {
Volumes."/data" = { }; Volumes."/data" = { };
WorkingDir = "/data"; WorkingDir = "/data";
Entrypoint = [ "${coloredVnetod}/bin/vnetod" ]; Entrypoint = [ "${vnetod}/bin/vnetod" ];
}; };
}; };
@ -60,13 +60,13 @@
{ {
apps = { apps = {
default = mkApp vnetod; default = mkApp vnetod;
colored = mkApp coloredVnetod; minimal = mkApp minimalVnetod;
}; };
packages = { packages = {
inherit docker vnetod; inherit docker vnetod;
default = vnetod; default = vnetod;
colored = coloredVnetod; minimal = minimalVnetod;
}; };
devShell = pkgs.mkShell { devShell = pkgs.mkShell {