This commit is contained in:
Ellis Rahhal 2025-03-22 14:41:43 -07:00
parent 79b5bcbdd2
commit 327f924150

View file

@ -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;
};
};