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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgsUnstable
|
|
|
|
, flake-utils
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgsUnstable = import nixpkgsUnstable { inherit system; };
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# filesystem tools
|
|
|
|
squashfsTools # mksquashfs
|
|
|
|
dosfstools # mkfs.vfat
|
|
|
|
mtools # mcopy
|
|
|
|
cryptsetup # dm-verity
|
|
|
|
util-linux # flock
|
|
|
|
kmod # depmod
|
|
|
|
]);
|
|
|
|
}));
|
|
|
|
|
2023-10-04 07:17:01 -04:00
|
|
|
openssl-static = pkgsUnstable.openssl.override { static = true; };
|
|
|
|
|
2023-09-04 12:45:13 -04:00
|
|
|
in
|
|
|
|
{
|
|
|
|
packages.mkosi = mkosiDev;
|
|
|
|
|
2023-10-04 07:17:01 -04:00
|
|
|
packages.openssl = pkgsUnstable.symlinkJoin {
|
|
|
|
name = "openssl";
|
|
|
|
paths = [ openssl-static.out openssl-static.dev ];
|
|
|
|
};
|
|
|
|
|
2023-10-16 10:45:36 -04:00
|
|
|
packages.awscli2 = pkgsUnstable.awscli2;
|
|
|
|
|
|
|
|
packages.createrepo_c = pkgsUnstable.createrepo_c;
|
|
|
|
|
|
|
|
packages.dnf5 = pkgsUnstable.dnf5;
|
|
|
|
|
2023-09-04 12:45:13 -04:00
|
|
|
devShells.default = import ./nix/shells/default.nix { pkgs = pkgsUnstable; };
|
|
|
|
|
|
|
|
formatter = nixpkgsUnstable.legacyPackages.${system}.nixpkgs-fmt;
|
|
|
|
});
|
|
|
|
}
|