Compare commits
3 Commits
7521112f1a
...
a9d1ee262f
| Author | SHA1 | Date | |
|---|---|---|---|
| a9d1ee262f | |||
| a3b02c4d06 | |||
| 1f6f0e87a0 |
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, opts, ... }: {
|
||||||
# Import all your configuration modules here
|
# Import all your configuration modules here
|
||||||
imports = [ ./bufferline.nix ];
|
imports = [ ./bufferline.nix ];
|
||||||
|
|
||||||
@@ -185,5 +185,5 @@
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
colorscheme = "pywal";
|
colorscheme = if opts.pywal then "pywal" else "tokyonight-storm";
|
||||||
}
|
}
|
||||||
|
|||||||
19
flake.nix
19
flake.nix
@@ -22,25 +22,36 @@
|
|||||||
let
|
let
|
||||||
nixvimLib = nixvim.lib.${system};
|
nixvimLib = nixvim.lib.${system};
|
||||||
nixvim' = nixvim.legacyPackages.${system};
|
nixvim' = nixvim.legacyPackages.${system};
|
||||||
nixvimModule = {
|
nixvimModule = { opts }: {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
module = import ./config; # import the module directly
|
module = import ./config; # import the module directly
|
||||||
# You can use `extraSpecialArgs` to pass additional arguments to your module files
|
# You can use `extraSpecialArgs` to pass additional arguments to your module files
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
inherit opts;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nvim = nixvim'.makeNixvimWithModule nixvimModule;
|
nvim = { opts }: nixvim'.makeNixvimWithModule (nixvimModule { inherit opts; });
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
checks = {
|
checks = {
|
||||||
# Run `nix flake check .` to verify that your config is not broken
|
# Run `nix flake check .` to verify that your config is not broken
|
||||||
default = nixvimLib.check.mkTestDerivationFromNixvimModule nixvimModule;
|
default = nixvimLib.check.mkTestDerivationFromNixvimModule (nixvimModule { opts = { pywal = false; }; });
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
# Lets you run `nix run .` to start nixvim
|
# Lets you run `nix run .` to start nixvim
|
||||||
default = nvim;
|
default = nvim {
|
||||||
|
opts = {
|
||||||
|
pywal = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pywal = nvim {
|
||||||
|
opts = {
|
||||||
|
pywal = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user