diff --git a/flake.nix b/flake.nix index cd3d844..1344986 100644 --- a/flake.nix +++ b/flake.nix @@ -20,30 +20,19 @@ }; outputs = { self, nixpkgs, neovim, ... }@inputs: { - nixosModules.neovim = { config, lib, pkgs,... }: - let - theme = "dracula"; # Change ici pour "gruvbox" ou autre - themePackage = { - "dracula" = inputs.plugin-dracula; - "gruvbox" = inputs.plugin-gruvbox; - "tokyonight" = null; # Pas de flake pour tokyonight - }.${theme} or null; - in - { - options.neovim.enable = lib.mkEnableOption "Enable Neovim"; - - config = { - environment.systemPackages = [ - inputs.neovim.packages.${pkgs.system}.neovim - ]; - programs.neovim = { - enable = true; - configure.customRC = '' - set runtimepath+=${themePackage} - colorscheme ${theme} - ''; + nixosModules.neovim ={ + config = { + environment.systemPackages = [ + inputs.neovim.packages.${pkgs.system}.neovim + ]; + programs.neovim = { + enable = true; + configure.customRC = '' + set runtimepath+=${themePackage} + colorscheme ${theme} + ''; + }; }; - }; - }; - }; + }; + }; }