Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates/simple: configure nixpkgs.pkgs #2521

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions templates/simple/config/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{ inputs, system, ... }:
{
# Import all your configuration modules here
imports = [ ./bufferline.nix ];

nixpkgs.pkgs = import inputs.nixpkgs { inherit system; };
}
3 changes: 1 addition & 2 deletions templates/simple/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
nixvimLib = nixvim.lib.${system};
nixvim' = nixvim.legacyPackages.${system};
nixvimModule = {
inherit pkgs;
module = import ./config; # import the module directly
# You can use `extraSpecialArgs` to pass additional arguments to your module files
extraSpecialArgs = {
# inherit (inputs) foo;
inherit inputs system;
};
};
nvim = nixvim'.makeNixvimWithModule nixvimModule;
Expand Down