nix/lib/packages.nix

21 lines
605 B
Nix
Raw Normal View History

2024-08-13 11:41:19 +02:00
{ inputs, system, unfree, repo, ... }: {
# Choose whether to pull from stable or unstable
pkgs = (import inputs.${repo} {
inherit system;
config = {
allowUnfree = unfree;
permittedInsecurePackages = [ "electron-27.3.11" ];
};
hostPlatform = system;
});
# Some packages (ie, Vintage Story) I want to keep on unstable no matter what default repo I use
pkgs-unstable = (import inputs.nixpkgs-unstable {
inherit system;
config = {
allowUnfree = unfree;
permittedInsecurePackages = [ "electron-27.3.11" ];
};
hostPlatform = system;
});
}