testing
This commit is contained in:
parent
d40898a04b
commit
7fbe5c0acc
31
flake.lock
31
flake.lock
@ -35,6 +35,7 @@
|
|||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
"nvim",
|
||||||
"neovim",
|
"neovim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
@ -56,6 +57,7 @@
|
|||||||
"flake-parts_2": {
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
"nvim",
|
||||||
"neovim",
|
"neovim",
|
||||||
"hercules-ci-effects",
|
"hercules-ci-effects",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@ -79,6 +81,7 @@
|
|||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"gitignore": "gitignore",
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
"nvim",
|
||||||
"neovim",
|
"neovim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
@ -100,6 +103,7 @@
|
|||||||
"gitignore": {
|
"gitignore": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
"nvim",
|
||||||
"neovim",
|
"neovim",
|
||||||
"git-hooks",
|
"git-hooks",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@ -123,6 +127,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
"nvim",
|
||||||
"neovim",
|
"neovim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
@ -149,6 +154,7 @@
|
|||||||
"hercules-ci-effects": "hercules-ci-effects",
|
"hercules-ci-effects": "hercules-ci-effects",
|
||||||
"neovim-src": "neovim-src",
|
"neovim-src": "neovim-src",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
"nvim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
@ -198,6 +204,26 @@
|
|||||||
"type": "github"
|
"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": {
|
"plugin-dracula": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -216,14 +242,13 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"neovim": "neovim",
|
"nvim": "nvim"
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"plugin-dracula": "plugin-dracula"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
"nvim",
|
||||||
"neovim",
|
"neovim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|||||||
40
flake.nix
40
flake.nix
@ -2,41 +2,9 @@
|
|||||||
{
|
{
|
||||||
description = "My own Neovim flake";
|
description = "My own Neovim flake";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs = {
|
nvim.url = "git+https://gitea.napo280.fr/napo280/flake-nvim";
|
||||||
url = "github:NixOS/nixpkgs";
|
};
|
||||||
};
|
outputs = { self, ... }@inputs: {
|
||||||
neovim = {
|
nixosModules.neovim = inputs.nvim.nixosModules.neovim; # Import du module 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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user