feat(flake)!: *dogfood* on all flake modules

Export all `./nix/` flake modules
Modularize `configurations` on `machines` dir
Also move `toposort` images to a single attrset binding
This commit is contained in:
reo101 2024-07-25 01:25:21 +03:00
parent c6432c7dab
commit 91f0deb3bc
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
10 changed files with 363 additions and 284 deletions

21
modules/flake/pkgs.nix Normal file
View file

@ -0,0 +1,21 @@
{ inputs, self, lib, config, ... }:
{
perSystem = { system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = lib.attrValues self.overlays ++ [
inputs.neovim-nightly-overlay.overlays.default
inputs.zig-overlay.overlays.default
inputs.nix-topology.overlays.default
inputs.wired.overlays.default
# nix-on-droid overlay (needed for `proot`)
inputs.nix-on-droid.overlays.default
];
config = {
# TODO: per machine?
allowUnfree = true;
};
};
};
}