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:
parent
931db3e83f
commit
f2a103da30
8 changed files with 146 additions and 355 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue