Files

65 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2024-04-16 11:56:30 -05:00
{
2025-11-25 22:42:47 -06:00
description = "Standard images that Greg wants to build";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
2026-01-20 13:26:45 -06:00
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2025-11-25 22:42:47 -06:00
};
2024-04-16 11:56:30 -05:00
2025-11-25 22:42:47 -06:00
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,
...
}:
2026-01-20 13:26:45 -06:00
let
2026-01-22 23:52:55 -06:00
lib' = import ./lib.nix {
2026-01-23 17:48:04 -06:00
inherit pkgs;
2026-01-22 23:52:55 -06:00
};
2026-05-07 10:14:14 -05:00
# The system the images will use packages from. There is no point in
# making the image using Darwin packages!
system' = builtins.replaceStrings ["darwin"] ["linux"] system;
pkgs' = import nixpkgs {
system = system';
config.allowUnfree = true;
lib = lib';
};
2026-01-20 13:26:45 -06:00
in
2025-11-25 22:42:47 -06:00
{
2026-01-20 13:26:45 -06:00
_module.args = {
pkgs = import nixpkgs {
2026-01-22 23:52:55 -06:00
inherit system;
config.allowUnfree = true;
lib = lib';
2026-01-20 13:26:45 -06:00
};
2025-11-25 22:42:47 -06:00
};
packages =
let
2026-05-07 10:14:14 -05:00
inherit (pkgs') callPackage;
2026-01-22 23:52:55 -06:00
name = n: "src.thehellings.com/greg/${n}";
2025-11-25 22:42:47 -06:00
in
{
bitwarden = callPackage ./img/bitwarden.nix { inherit name; };
2026-01-22 23:52:55 -06:00
builder = callPackage ./img/builder.nix { inherit name lib'; };
2025-11-25 23:19:09 -06:00
immich = callPackage ./img/immich.nix { inherit name; };
2025-11-25 22:42:47 -06:00
sword-container-builder = callPackage ./img/sword-container-builder.nix { inherit name; };
vm-test = callPackage ./img/vm-test.nix { inherit name; };
};
};
};
2024-04-16 11:56:30 -05:00
}