Add default.nix and docker.nix

This commit is contained in:
coolneng 2021-07-06 20:12:45 +02:00
parent 20170200aa
commit 02b23c7ae5
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 19 additions and 0 deletions

5
default.nix Normal file
View File

@ -0,0 +1,5 @@
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
with pkgs;
poetry2nix.mkPoetryApplication { projectDir = ./.; }

14
docker.nix Normal file
View File

@ -0,0 +1,14 @@
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
with pkgs;
let locimend = callPackage ./default.nix { };
in {
docker = dockerTools.streamLayeredImage {
name = "locimend";
contents = [ locimend ];
config.Cmd = [ "api" ];
};
}