packages is now a modul
This commit is contained in:
parent
254e48339f
commit
6cc15d7f2e
13
flake.nix
13
flake.nix
@ -11,10 +11,13 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, neovim }: {
|
outputs = { self, nixpkgs, neovim }: {
|
||||||
packages.x86_64-linux.default = neovim.packages.x86_64-linux.neovim;
|
nixosModules.neovim = { config, pkgs, ...}: {
|
||||||
apps.x86_64-linux.default = {
|
# Installation de Neovim en tant que package système
|
||||||
type = "app";
|
environment.systemPackages = [ neovim.packages.${pkgs.system}.neovim ];
|
||||||
program = "${neovim.packages.x86_64-linux.neovim}/bin/nvim";
|
|
||||||
};
|
# Optionnel : Activer des services liés à Neovim, si besoin
|
||||||
|
programs.neovim.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user