From 09187cbca2847b0b7844787c4154f96d188ea9e1 Mon Sep 17 00:00:00 2001 From: xenia Date: Mon, 21 Oct 2024 17:37:02 -0400 Subject: [PATCH] meow --- flake.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 46e8d94..5f01a80 100644 --- a/flake.nix +++ b/flake.nix @@ -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: