nix-docker-images/unstable-with-flakes/flake.nix
Aaron Honeycutt 67abfb07c1
Some checks failed
nix docker build stable / amd64 (pull_request) Failing after 1m1s
nix docker build unstable / amd64 (pull_request) Failing after 1m13s
add nix flakes for unstable
2026-01-23 16:04:41 -07:00

31 lines
840 B
Nix

{
description = "Simple Nix Docker image based on unstable";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages.nixos-unstable = pkgs.dockerTools.buildImage {
name = "nixos-unstable";
tag = "0.1.0";
config = {
Cmd = [
"${pkgs.hello}/bin/hello"
];
Env = [
"NIX_CONFIG=extra-experimental-features = nix-command flakes"
];
};
created = "now";
};
devShells.default =
pkgs.mkShell { buildInputs = with pkgs; [ hello ]; };
});
}