flake/flake.nix
Arthur Wambst 11179aa851 dev theme
2025-02-20 14:11:11 +01:00

43 lines
974 B
Nix

# flake.nix
{
description = "My own Neovim flake";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs";
};
neovim = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
plugin-dracula = {
url = "github:Mofiqul/dracula.nvim";
flake = false;
};
};
outputs = { self, nixpkgs, neovim, ... }@inputs: {
nixosModules.neovim = { config, pkgs, ...}: {
# Installation de Neovim en tant que package système
environment.systemPackages = [ neovim.packages.${pkgs.system}.neovim ];
# Activer nvim
programs.neovim = {
enable = true;
# Native way to configure Neovim
configure = {
customRC = ''
" Add Dracula to runtimepath
" set runtimepath+=${inputs.plugin-dracula}
" Enable Dracula colorscheme
colorscheme dracula
'';
};
};
};
};
}