From 7fbe5c0acc42cbf31c1f29bb54010803fd1f5ba1 Mon Sep 17 00:00:00 2001 From: Arthur Wambst Date: Fri, 21 Feb 2025 19:27:01 +0100 Subject: [PATCH] testing --- flake.lock | 31 ++++++++++++++++++++++++++++--- flake.nix | 40 ++++------------------------------------ 2 files changed, 32 insertions(+), 39 deletions(-) diff --git a/flake.lock b/flake.lock index 20beb92..5c3be2e 100644 --- a/flake.lock +++ b/flake.lock @@ -35,6 +35,7 @@ "flake-parts": { "inputs": { "nixpkgs-lib": [ + "nvim", "neovim", "nixpkgs" ] @@ -56,6 +57,7 @@ "flake-parts_2": { "inputs": { "nixpkgs-lib": [ + "nvim", "neovim", "hercules-ci-effects", "nixpkgs" @@ -79,6 +81,7 @@ "flake-compat": "flake-compat_2", "gitignore": "gitignore", "nixpkgs": [ + "nvim", "neovim", "nixpkgs" ] @@ -100,6 +103,7 @@ "gitignore": { "inputs": { "nixpkgs": [ + "nvim", "neovim", "git-hooks", "nixpkgs" @@ -123,6 +127,7 @@ "inputs": { "flake-parts": "flake-parts_2", "nixpkgs": [ + "nvim", "neovim", "nixpkgs" ] @@ -149,6 +154,7 @@ "hercules-ci-effects": "hercules-ci-effects", "neovim-src": "neovim-src", "nixpkgs": [ + "nvim", "nixpkgs" ], "treefmt-nix": "treefmt-nix" @@ -198,6 +204,26 @@ "type": "github" } }, + "nvim": { + "inputs": { + "neovim": "neovim", + "nixpkgs": "nixpkgs", + "plugin-dracula": "plugin-dracula" + }, + "locked": { + "lastModified": 1740162357, + "narHash": "sha256-EahZkSQYWrYiRkUKyhZLNbAZLXF7OgXCYab0kOmmSqA=", + "ref": "refs/heads/main", + "rev": "058a7620e20f1c62c4e3fcc8fe1b2dac9250c37b", + "revCount": 2, + "type": "git", + "url": "https://gitea.napo280.fr/napo280/flake-nvim" + }, + "original": { + "type": "git", + "url": "https://gitea.napo280.fr/napo280/flake-nvim" + } + }, "plugin-dracula": { "flake": false, "locked": { @@ -216,14 +242,13 @@ }, "root": { "inputs": { - "neovim": "neovim", - "nixpkgs": "nixpkgs", - "plugin-dracula": "plugin-dracula" + "nvim": "nvim" } }, "treefmt-nix": { "inputs": { "nixpkgs": [ + "nvim", "neovim", "nixpkgs" ] diff --git a/flake.nix b/flake.nix index 27aec44..2627f67 100644 --- a/flake.nix +++ b/flake.nix @@ -2,41 +2,9 @@ { 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; - }; + nvim.url = "git+https://gitea.napo280.fr/napo280/flake-nvim"; + }; + outputs = { self, ... }@inputs: { + nixosModules.neovim = inputs.nvim.nixosModules.neovim; # Import du module Neovim }; - 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 - ''; - }; - - }; - }; - }; }