create packages for overlays
This commit is contained in:
parent
ffceb60bb8
commit
a1ed6a69fa
31
default.nix
31
default.nix
@ -2,19 +2,34 @@ top@{ inputs, ... }: {
|
||||
imports = [ ./nixos ./home ];
|
||||
systems = [ "x86_64-linux" ];
|
||||
flake.stateVersion = "24.05";
|
||||
perSystem = perSystem@{ system, ... }: {
|
||||
perSystem = perSystem@{ config, system, pkgs, ... }: {
|
||||
config.packages = {
|
||||
nvim = inputs.ide.nvim.${system}.standalone.default {
|
||||
autoCmd = [
|
||||
{
|
||||
callback.__raw = /*lua*/ ''
|
||||
function() require("otter").activate() end
|
||||
'';
|
||||
event = [ "BufEnter" "BufWinEnter" "BufWritePost" ];
|
||||
pattern = [ "*.nix" ];
|
||||
}
|
||||
];
|
||||
plugins.lsp.servers = {
|
||||
bashls.enable = true;
|
||||
pylsp.enable = true;
|
||||
lua-ls.enable = true;
|
||||
};
|
||||
extraPlugins = with pkgs.vimPlugins; [ otter-nvim ];
|
||||
};
|
||||
scripts = (pkgs.buildEnv { name = "scripts"; paths = [ ./. ]; });
|
||||
};
|
||||
config._module.args = {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
nvim = inputs.ide.nvim.${system}.standalone.default {
|
||||
plugins.lsp.servers = {
|
||||
bashls.enable = true;
|
||||
nushell.enable = true;
|
||||
};
|
||||
};
|
||||
scripts = (prev.buildEnv { name = "scripts"; paths = [ ./. ]; });
|
||||
nvim = config.packages.nvim;
|
||||
scripts = config.packages.scripts;
|
||||
})
|
||||
inputs.sal.overlays.default
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user