refactor(flake): move flake modules into separate subdirectories
Also put `outputs` before `inputs` in `flake.nix` (readability)
This commit is contained in:
parent
236948cc2a
commit
db88731eba
6 changed files with 60 additions and 61 deletions
23
modules/flake/pkgs/default.nix
Normal file
23
modules/flake/pkgs/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ inputs, self, lib, config, ... }:
|
||||
|
||||
{
|
||||
perSystem = { system, ... }: {
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
# WARN: not including `self.packages` overylay
|
||||
# because it causes an infinite recursion
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue