Move images to here
This commit is contained in:
@@ -1,76 +1,48 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
description = "Standard images that Greg wants to build";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
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 = {
|
||||
sword-container-builder = pkgs.dockerTools.buildLayeredImage {
|
||||
name = "sword-container-builder";
|
||||
tag = "latest";
|
||||
contents = with pkgs; [
|
||||
podman
|
||||
dockerTools.binSh
|
||||
dockerTools.caCertificates
|
||||
coreutils
|
||||
findutils
|
||||
gnugrep
|
||||
gnused
|
||||
sword
|
||||
dockerTools.usrBinEnv
|
||||
];
|
||||
config.Env = [
|
||||
"CURL_CA_BUNDLE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
];
|
||||
};
|
||||
vm-test = let
|
||||
basicPython = (pkgs.python3.withPackages (p: with p; [ pyyaml ]));
|
||||
in pkgs.dockerTools.buildLayeredImage {
|
||||
name = "vm-test";
|
||||
tag = "latest";
|
||||
contents = with pkgs; [
|
||||
bash
|
||||
pkgs.dockerTools.binSh
|
||||
pkgs.dockerTools.caCertificates
|
||||
coreutils
|
||||
curlWithGnuTls
|
||||
pkgs.dockerTools.fakeNss
|
||||
gawk
|
||||
gnugrep
|
||||
findutils
|
||||
jq
|
||||
packer
|
||||
pup
|
||||
shellcheck
|
||||
pkgs.dockerTools.usrBinEnv
|
||||
(xonsh.overridePythonAttrs (old: rec { python3 = basicPython; propagatedBuildInputs = old.propagatedBuildInputs ++ [ basicPython.pkgs.pyyaml ];}))
|
||||
];
|
||||
extraCommands = builtins.concatStringsSep "\n" [
|
||||
"mkdir -p tmp"
|
||||
"chmod 1777 tmp"
|
||||
];
|
||||
config.Env = [
|
||||
"CURL_CA_BUNDLE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
outputs =
|
||||
inputs@{
|
||||
nixpkgs,
|
||||
flake-parts,
|
||||
...
|
||||
}:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
flake = {
|
||||
};
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
perSystem =
|
||||
{
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
{
|
||||
_module.args.pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
packages =
|
||||
let
|
||||
inherit (pkgs) callPackage;
|
||||
name = n: "registry.thehellings.com/greg/ci-images/${n}";
|
||||
in
|
||||
{
|
||||
bitwarden = callPackage ./img/bitwarden.nix { inherit name; };
|
||||
builder = callPackage ./img/builder.nix { inherit name; };
|
||||
immich = callPackage ./immg/immich.nix { inherit name; };
|
||||
sword-container-builder = callPackage ./img/sword-container-builder.nix { inherit name; };
|
||||
vm-test = callPackage ./img/vm-test.nix { inherit name; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user