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 ];
|
imports = [ ./nixos ./home ];
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
flake.stateVersion = "24.05";
|
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 = {
|
config._module.args = {
|
||||||
pkgs = import inputs.nixpkgs {
|
pkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
nvim = inputs.ide.nvim.${system}.standalone.default {
|
nvim = config.packages.nvim;
|
||||||
plugins.lsp.servers = {
|
scripts = config.packages.scripts;
|
||||||
bashls.enable = true;
|
|
||||||
nushell.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
scripts = (prev.buildEnv { name = "scripts"; paths = [ ./. ]; });
|
|
||||||
})
|
})
|
||||||
inputs.sal.overlays.default
|
inputs.sal.overlays.default
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user