1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-14 13:01:12 +01:00

Allow using global config with hm and nixos (#48)

* remove useless nixvim file

* reorganize flake outputs

* use global config file with home-manager and nixos
This commit is contained in:
Luc Chabassier 2022-10-17 15:08:17 +02:00 committed by GitHub
parent 931db3e83f
commit f2a103da30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 146 additions and 355 deletions

View file

@ -5,15 +5,19 @@
inputs.nixvim.url = "./..";
inputs.nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-22.05";
inputs.nixvim-stable = {
url = "./..";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
outputs = { self, nixvim, nixpkgs, flake-utils, nixpkgs-stable, ... }:
outputs = { self, nixvim, nixvim-stable, nixpkgs, flake-utils, nixpkgs-stable, ... }:
(flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs { inherit system; };
pkgs-stable = import nixpkgs-stable { inherit system; };
build = nixvim.build pkgs;
build-stable = nixvim.build pkgs-stable;
build = nixvim.legacyPackages.${system}.makeNixvim;
build-stable = nixvim-stable.legacyPackages.${system}.makeNixvim;
in
rec {
# A plain nixvim configuration