8000 GitHub - typovrak/nixos-nvim: ๐Ÿš€ Declarative NixOS module to provision Neovim with a Lua-based config scaffold, Catppuccin mocha green theme and essential plugins
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

๐Ÿš€ Declarative NixOS module to provision Neovim with a Lua-based config scaffold, Catppuccin mocha green theme and essential plugins

License

Notifications You must be signed in to change notification settings

typovrak/nixos-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
< 8000 /div>
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ NixOS Nvim

Declarative NixOS module to provision Neovim with a Lua-based config scaffold, Catppuccin mocha green theme and essential plugins.

๐Ÿ“ฆ Features

  • ๐Ÿ”’ Secure config scaffold : Creates ~/.config/nvim and subdirectories with 700/600 permissions.

  • ๐ŸŽจ Catppuccin mocha green : Deploys catppuccin.lua theme in lua/plugins.

  • โš™๏ธ Plugin templates : Includes starter configs for blink, conform, gitsigns, lazydev, LSP, treesitter, telescope, todo-comments, which-key and more.

  • ๐Ÿš€ Language support : Installs go, rustup, python3, ruby for LSP and tooling.

  • ๐Ÿ“‹ Clipboard integration : Adds xclip and copyq for system clipboard support.

  • ๐Ÿ”„ Idempotent : Safe to run on every nixos-rebuild, preserves and updates config files.

  • ๐Ÿ”ฎ Evolving : Configuration is under active developmentโ€”expect frequent improvements.

  • ๐Ÿ’พ Manual backups : Backup commands are provided in the documentation to preserve existing files before changes if needed.

โš™๏ธ Prerequisites

1. NixOS version

Requires NixOS 24.11 or newer.

2. User validation

the target user must be defined in config.username. See typovrak main nixos configuration for more details.

3. Backup

Before proceeding, back up existing configuration if needed

cp ~/.config/nvim{,.bak}

๐Ÿš€ Installation

Fetch the module directly in your main nixos configuration at /etc/nixos/configuration.nix using fetchGit

# /etc/nixos/configuration.nix

let
  nixos-nvim = fetchGit {
    url = "https://github.com/typovrak/nixos-nvim.git";
    ref = "main";
    rev = "eea0e1d5fb671859b6729c2c788fad3d68de4eea"; # update to the desired commit
  };
in
{
  imports = [
    /etc/nixos/hardware-configuration.nix # system hardware settings
    /etc/nixos/variables.nix # defines config.username and other variables, see https://github.com/typovrak/nixos for more details
    (import "${nixos-nvim}/configuration.nix")
  ];
}

Once imported, rebuild your system to apply changes

sudo nixos-rebuild switch

๐ŸŽฌ Usage

Start coding now with nvim !

โค๏ธ Support

If this module saved you time, please โญ๏ธ the repo and share feedback.
You can also support me on โ˜• Buy me a coffee.

๐Ÿ“ License

Distributed under the MIT license.

๐Ÿ“œ Code of conduct

This project maintains a code of conduct to ensure a respectful, inclusive and constructive community.

๐Ÿ›ก๏ธ Security

To report vulnerabilities or learn about supported versions and response timelines, please see our security policy.


Made with ๐Ÿ’œ by typovrak

About

๐Ÿš€ Declarative NixOS module to provision Neovim with a Lua-based config scaffold, Catppuccin mocha green theme and essential plugins

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

339A
0