From a3b02c4d0632844cdf5cba4fc54506d7a670836b Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 16 Jan 2025 14:40:22 -0600 Subject: [PATCH] options is a taken var name --- config/default.nix | 4 ++-- flake.nix | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/default.nix b/config/default.nix index 74325df..264b4f1 100644 --- a/config/default.nix +++ b/config/default.nix @@ -1,4 +1,4 @@ -{ pkgs, options, ... }: { +{ pkgs, opts, ... }: { # Import all your configuration modules here imports = [ ./bufferline.nix ]; @@ -185,5 +185,5 @@ ]; - colorscheme = if options.pywal then "pywal" else "tokyonight-storm"; + colorscheme = if opts.pywal then "pywal" else "tokyonight-storm"; } diff --git a/flake.nix b/flake.nix index b78de04..0c84de3 100644 --- a/flake.nix +++ b/flake.nix @@ -22,33 +22,33 @@ let nixvimLib = nixvim.lib.${system}; nixvim' = nixvim.legacyPackages.${system}; - nixvimModule = options: { + nixvimModule = opts: { inherit pkgs; module = import ./config; # import the module directly # You can use `extraSpecialArgs` to pass additional arguments to your module files extraSpecialArgs = { inherit pkgs; - inherit options; + inherit opts; }; }; - nvim = options: nixvim'.makeNixvimWithModule (nixvimModule options); + nvim = opts: nixvim'.makeNixvimWithModule (nixvimModule opts); in { checks = { # Run `nix flake check .` to verify that your config is not broken - default = nixvimLib.check.mkTestDerivationFromNixvimModule (nixvimModule { options = { pywal = false; }; }); + default = nixvimLib.check.mkTestDerivationFromNixvimModule (nixvimModule { opts = { pywal = false; }; }); }; packages = { # Lets you run `nix run .` to start nixvim default = nvim { - options = { + opts = { pywal = false; }; }; pywal = nvim { - options = { + opts = { pywal = true; }; };