sk_extract/flake.nix
2025-06-28 21:03:33 -04:00

38 lines
989 B
Nix

{
description = "SK Extract";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
{
self,
nixpkgs,
}@inputs:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
# I improved how you call in packages
pkgs = forAllSystems (
system:
import nixpkgs {
inherit system;
#v this can be adjusted to read args passed without impure later
config = {
allowUnfree = true;
};
}
);
in
{
packages = forAllSystems (system: {
default = pkgs.${system}.callPackage ./nix/default.nix { };
});
devShells = forAllSystems (system: {
default = pkgs.${system}.callPackage ./nix/devshell.nix { };
});
nixConfig = {
# I would have like this to work but it requires the nix user to set an option.
allowUnfree = true;
};
};
}