constellation/flake.nix

47 lines
1.0 KiB
Nix
Raw Normal View History

{
description = "Constellation";
inputs = {
nixpkgsUnstable = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
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 08:50:42 +00:00
mkosiDev = (pkgsUnstable.mkosi.overrideAttrs (oldAttrs: rec {
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ (with pkgsUnstable; [
# package management
dnf5
rpm
# filesystem tools
squashfsTools # mksquashfs
dosfstools # mkfs.vfat
mtools # mcopy
cryptsetup # dm-verity
util-linux # flock
kmod # depmod
]);
}));
in
{
packages.mkosi = mkosiDev;
devShells.default = import ./nix/shells/default.nix { pkgs = pkgsUnstable; };
formatter = nixpkgsUnstable.legacyPackages.${system}.nixpkgs-fmt;
});
}