2024-04-16 11:56:30 -05:00
|
|
|
{
|
|
|
|
|
description = "Standard images that Greg wants to build";
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
|
greg.url = "github:greg-hellings/nixos-config";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
outputs = inputs@{ self, nixpkgs, flake-utils, greg, flake-parts }:
|
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
|
flake = {
|
|
|
|
|
};
|
|
|
|
|
systems = [
|
|
|
|
|
"x86_64-linux"
|
|
|
|
|
"aarch64-linux"
|
|
|
|
|
"x86_64-darwin"
|
|
|
|
|
"aarch64-darwin"
|
|
|
|
|
];
|
|
|
|
|
perSystem = sys@{ config, pkgs, system, ... }: {
|
|
|
|
|
_module.args.pkgs = import nixpkgs {
|
|
|
|
|
inherit system;
|
|
|
|
|
config.allowUnfree = true;
|
|
|
|
|
};
|
|
|
|
|
packages = {
|
|
|
|
|
vm-test = pkgs.dockerTools.buildLayeredImage {
|
|
|
|
|
name = "vm-test";
|
2024-04-16 12:20:55 -05:00
|
|
|
tag = "latest";
|
2024-04-16 11:56:30 -05:00
|
|
|
contents = with pkgs; [
|
|
|
|
|
bash
|
2024-04-16 12:55:52 -05:00
|
|
|
coreutils
|
2024-04-16 11:56:30 -05:00
|
|
|
curl
|
2024-04-16 12:56:43 -05:00
|
|
|
gnugrep
|
2024-04-16 11:56:30 -05:00
|
|
|
findutils
|
|
|
|
|
jq
|
|
|
|
|
packer
|
|
|
|
|
(python3.withPackages (p: with p; [ pyyaml ]))
|
|
|
|
|
shellcheck
|
|
|
|
|
xonsh
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|