2024-07-20 13:30:25 +02:00
|
|
|
{ inputs, self, lib, config, ... }:
|
2024-07-19 11:35:01 +02:00
|
|
|
|
|
|
|
{
|
2024-07-20 13:30:25 +02:00
|
|
|
perSystem = { system, ... }: {
|
2024-07-19 11:35:01 +02:00
|
|
|
_module.args.pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
2024-07-29 00:35:14 +02:00
|
|
|
# WARN: not including `self.packages` overylay
|
|
|
|
# because it causes an infinite recursion
|
2024-07-19 11:35:01 +02:00
|
|
|
overlays = lib.attrValues self.overlays ++ [
|
2024-07-20 13:30:25 +02:00
|
|
|
inputs.neovim-nightly-overlay.overlays.default
|
|
|
|
inputs.zig-overlay.overlays.default
|
2024-07-19 11:35:01 +02:00
|
|
|
inputs.nix-topology.overlays.default
|
2024-07-20 13:30:25 +02:00
|
|
|
inputs.wired.overlays.default
|
|
|
|
# nix-on-droid overlay (needed for `proot`)
|
|
|
|
inputs.nix-on-droid.overlays.default
|
2024-07-19 11:35:01 +02:00
|
|
|
];
|
2024-07-20 13:30:25 +02:00
|
|
|
config = {
|
|
|
|
# TODO: per machine?
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2024-07-19 11:35:01 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|