finally nvim config setup begins
This commit is contained in:
parent
f41731ae90
commit
901795c292
4 changed files with 148 additions and 138 deletions
31
modules/nixos/apps/cli-apps/nixvim/default.nix
Normal file
31
modules/nixos/apps/cli-apps/nixvim/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
cfg = config.wyrdgard.apps.cli-apps.nixvim;
|
||||
in {
|
||||
options.wyrdgard.apps.cli-apps.nixvim = with types; {
|
||||
enable = mkBoolOpt true "Whether to enable nixvim or not (Default true)";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
colorschemes.tokyonight = enabled;
|
||||
globals.mapleader = " ";
|
||||
|
||||
clipboard.providers.wl-copy = enabled;
|
||||
|
||||
options = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
shiftwidth = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -38,6 +38,7 @@ in {
|
|||
cfg.extra-substituters;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
snowfallorg.flake
|
||||
nixfmt
|
||||
nix-prefetch-git
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue