nix-docker-images/stable-with-flakes/flake.nix
Aaron Honeycutt 541cce3c1f
All checks were successful
nix docker build stable / amd64 (pull_request) Successful in 52s
nix docker build unstable / amd64 (pull_request) Successful in 49s
setting nix flakes as enabled and update CI
2026-01-23 16:02:07 -07:00

31 lines
836 B
Nix

{
description = "Simple Nix Docker image based on a stable release";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-25.11";
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-stable = pkgs.dockerTools.buildImage {
name = "nixos-stable";
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 ]; };
});
}