nix/lib/packages.nix
2024-09-08 08:09:36 +09:00

26 lines
715 B
Nix

{ 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" # Logseq
"olm-3.2.16" # Unknown
];
};
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" # Logseq
"olm-3.2.16" # Unknown
];
};
hostPlatform = system;
});
}