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