packages is now a modul

This commit is contained in:
Arthur Wambst 2025-02-19 17:01:23 +01:00
parent 254e48339f
commit 6cc15d7f2e
2 changed files with 9 additions and 5 deletions

View File

@ -11,10 +11,13 @@
};
};
outputs = { self, nixpkgs, neovim }: {
packages.x86_64-linux.default = neovim.packages.x86_64-linux.neovim;
apps.x86_64-linux.default = {
type = "app";
program = "${neovim.packages.x86_64-linux.neovim}/bin/nvim";
nixosModules.neovim = { config, pkgs, ...}: {
# Installation de Neovim en tant que package système
environment.systemPackages = [ neovim.packages.${pkgs.system}.neovim ];
# Optionnel : Activer des services liés à Neovim, si besoin
programs.neovim.enable = true;
};
};
}

1
result Symbolic link
View File

@ -0,0 +1 @@
/nix/store/xndb885iqm9djiqilqk7s8m8bgzgcj7s-neovim-unwrapped-nightly