This commit is contained in:
xenia 2024-10-21 17:37:02 -04:00
parent 2b06f8dbcf
commit 09187cbca2
1 changed files with 14 additions and 5 deletions

View File

@ -23,11 +23,20 @@
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in {
lib = nixpkgs.lib.extend (final: prev: {
nixosSystem = (args: prev.nixosSystem {
modules = args.modules ++ [
({ ... }: { nixpkgs.overlays = overlays; })
];
} // builtins.removeAttrs args [ "modules" ]);
nixosSystem = args:
import "${nixpkgs}/nixos/lib/eval-config.nix" (
{
lib = final;
system = null;
modules = args.modules ++ [
({ config, pkgs, lib, ... }: {
config.nixpkgs.flake.source = self.outPath;
})
];
} // builtins.removeAttrs args [ "modules" ]
);
});
legacyPackages = forAllSystems (system: