From 327f924150c9eeddd853071335c666c6aae946ef Mon Sep 17 00:00:00 2001 From: Ellis Rahhal Date: Sat, 22 Mar 2025 14:41:43 -0700 Subject: [PATCH] testing --- flake.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 889d594..cd2e125 100644 --- a/flake.nix +++ b/flake.nix @@ -15,11 +15,16 @@ outputs = { self, nixpkgs, ... } @ inputs: { nixosModules = rec { - nixvim-config = { pkgs, ... }: - import ./default.nix { - inherit inputs; - inherit pkgs; - }; + nixvim-config = { config, ... }: + let + # Get system from the importing module's context + system = nixpkgs.lib.systems.elaborate config.nixpkgs.hostPlatform; + pkgs = nixpkgs.legacyPackages.${system.system}; + in + import ./default.nix { + inherit inputs; + inherit pkgs; + }; default = nixvim-config; }; };