diff options
| author | Fuwn <[email protected]> | 2021-04-24 18:25:38 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-24 18:25:38 +0000 |
| commit | fc86d754351e9390bd609a756cb2075a4cd5dcba (patch) | |
| tree | 0b69999dbf43737a2a943153ac90e70d6a12599a /default.nix | |
| parent | fmt: Add alt. attributes to images (diff) | |
| download | whirl-fc86d754351e9390bd609a756cb2075a4cd5dcba.tar.xz whirl-fc86d754351e9390bd609a756cb2075a4cd5dcba.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 = "/"; + }; +} |