nixvim-config/flake.nix
Ellis Rahhal 327f924150 testing
2025-03-22 14:41:43 -07:00

31 lines
794 B
Nix

{
description = "Opinionated Nixvim config as a flake";
inputs = {
## nixvim uses it's own version, so this is only
## for explicitly installed packages and non nixvim config
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixvim = {
url = "github:nix-community/nixvim";
};
};
outputs = { self, nixpkgs, ... } @ inputs:
{
nixosModules = rec {
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;
};
};
}