2023-09-04 12:45:13 -04:00
|
|
|
{
|
|
|
|
description = "Constellation";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgsUnstable = {
|
2023-11-09 14:17:14 -05:00
|
|
|
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2023-09-04 12:45:13 -04:00
|
|
|
};
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
};
|
2024-01-16 05:07:15 -05:00
|
|
|
uplosi = {
|
2024-01-26 10:37:10 -05:00
|
|
|
url = "github:edgelesssys/uplosi";
|
2024-02-19 07:34:33 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgsUnstable";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
2024-01-16 05:07:15 -05:00
|
|
|
};
|
2023-09-04 12:45:13 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgsUnstable
|
|
|
|
, flake-utils
|
2024-01-16 05:07:15 -05:00
|
|
|
, uplosi
|
2023-09-04 12:45:13 -04:00
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgsUnstable = import nixpkgsUnstable { inherit system; };
|
|
|
|
|
2023-11-23 11:24:54 -05:00
|
|
|
callPackage = pkgsUnstable.callPackage;
|
|
|
|
|
2023-10-04 04:50:42 -04:00
|
|
|
mkosiDev = (pkgsUnstable.mkosi.overrideAttrs (oldAttrs: rec {
|
|
|
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ (with pkgsUnstable; [
|
2023-09-04 12:45:13 -04:00
|
|
|
# package management
|
|
|
|
dnf5
|
|
|
|
rpm
|
2024-02-16 07:10:46 -05:00
|
|
|
createrepo_c
|
2023-09-04 12:45:13 -04:00
|
|
|
|
|
|
|
# filesystem tools
|
|
|
|
squashfsTools # mksquashfs
|
|
|
|
dosfstools # mkfs.vfat
|
|
|
|
mtools # mcopy
|
|
|
|
cryptsetup # dm-verity
|
|
|
|
util-linux # flock
|
|
|
|
kmod # depmod
|
2023-12-11 07:49:10 -05:00
|
|
|
cpio # cpio
|
|
|
|
zstd # zstd
|
|
|
|
xz # xz
|
2024-02-16 07:10:46 -05:00
|
|
|
|
|
|
|
# utils
|
|
|
|
gnused # sed
|
|
|
|
gnugrep # grep
|
2023-09-04 12:45:13 -04:00
|
|
|
]);
|
|
|
|
}));
|
|
|
|
|
2024-01-16 05:07:15 -05:00
|
|
|
uplosiDev = uplosi.outputs.packages."${system}".uplosi;
|
2024-01-04 10:34:15 -05:00
|
|
|
|
2023-10-04 07:17:01 -04:00
|
|
|
openssl-static = pkgsUnstable.openssl.override { static = true; };
|
|
|
|
|
2024-02-15 11:59:57 -05:00
|
|
|
bazel_7 = callPackage ./nix/packages/bazel.nix { pkgs = pkgsUnstable; nixpkgs = nixpkgsUnstable; };
|
|
|
|
|
2023-09-04 12:45:13 -04:00
|
|
|
in
|
|
|
|
{
|
|
|
|
packages.mkosi = mkosiDev;
|
|
|
|
|
2024-01-04 10:34:15 -05:00
|
|
|
packages.uplosi = uplosiDev;
|
|
|
|
|
2023-11-23 11:24:54 -05:00
|
|
|
packages.openssl = callPackage ./nix/cc/openssl.nix { pkgs = pkgsUnstable; };
|
|
|
|
|
|
|
|
packages.cryptsetup = callPackage ./nix/cc/cryptsetup.nix { pkgs = pkgsUnstable; pkgsLinux = import nixpkgsUnstable { system = "x86_64-linux"; }; };
|
|
|
|
|
|
|
|
packages.libvirt = callPackage ./nix/cc/libvirt.nix { pkgs = pkgsUnstable; pkgsLinux = import nixpkgsUnstable { system = "x86_64-linux"; }; };
|
2023-10-04 07:17:01 -04:00
|
|
|
|
2023-11-28 04:52:37 -05:00
|
|
|
packages.libvirtd_base = callPackage ./nix/container/libvirtd_base.nix { pkgs = pkgsUnstable; pkgsLinux = import nixpkgsUnstable { system = "x86_64-linux"; }; };
|
|
|
|
|
2024-02-15 07:08:27 -05:00
|
|
|
packages.vpn = callPackage ./nix/container/vpn/vpn.nix { pkgs = pkgsUnstable; pkgsLinux = import nixpkgsUnstable { system = "x86_64-linux"; }; };
|
|
|
|
|
2023-10-16 10:45:36 -04:00
|
|
|
packages.awscli2 = pkgsUnstable.awscli2;
|
|
|
|
|
2024-02-15 11:59:57 -05:00
|
|
|
packages.bazel_7 = bazel_7;
|
2023-11-03 06:41:45 -04:00
|
|
|
|
2023-10-16 10:45:36 -04:00
|
|
|
packages.createrepo_c = pkgsUnstable.createrepo_c;
|
|
|
|
|
|
|
|
packages.dnf5 = pkgsUnstable.dnf5;
|
|
|
|
|
2024-02-15 11:59:57 -05:00
|
|
|
devShells.default = callPackage ./nix/shells/default.nix { inherit bazel_7; };
|
2023-09-04 12:45:13 -04:00
|
|
|
|
|
|
|
formatter = nixpkgsUnstable.legacyPackages.${system}.nixpkgs-fmt;
|
|
|
|
});
|
|
|
|
}
|