home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bc9fde5c1910fb5a6d337882edb01ac5a686526a
parent 33b27e01ff2cdbe66aebd0b7796ed14c921dd988
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 22 Mar 2019 18:43:28 +0100

containers: add `kontain.me` command 👼

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/containers.nix | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/modules/profiles/containers.nix b/modules/profiles/containers.nix @@ -34,5 +34,16 @@ in nur.repos.vdemeester.yak skopeo ]; + home.file."bin/kontain.me" = { + text = '' + #!${pkgs.stdenv.shell} + command -v docker >/dev/null && { + docker run -ti --rm kontain.me/ko/$@ + } || { + podman run -ti --rm kontain.me/ko/$@ + } + ''; + executable = true; + }; }; }