diff options
| author | Fuwn <[email protected]> | 2021-04-24 18:25:38 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-24 18:25:38 -0700 |
| commit | cdec3030d42cdba4d2cc31ace080b7c0248fef6c (patch) | |
| tree | 12e445387214d36c66ccad466fd8d79a06a75ecf /default.nix | |
| parent | fmt: Add alt. attributes to images (diff) | |
| download | whirl-cdec3030d42cdba4d2cc31ace080b7c0248fef6c.tar.xz whirl-cdec3030d42cdba4d2cc31ace080b7c0248fef6c.zip | |
chore: Add Nix and Docker support
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..5691a41 --- /dev/null +++ b/default.nix @@ -0,0 +1,20 @@ + { system ? builtins.currentSystem }: + + let + sources = import ./nix/sources.nix; + pkgs = import sources.nixpkgs { }; + whirl = import ./whirl.nix { inherit sources pkgs; }; + + name = "Whirlsplash/whirl"; + tag = "latest"; + +in pkgs.dockerTools.buildLayeredImage { + inherit name tag; + contents = [ whirl ]; + + config = { + Cmd = [ "/bin/whirl" ]; + Env = [ ]; + WorkingDir = "/"; + }; +} |