2024-06-18 20:32:19 +02:00
|
|
|
top@{ inputs, ... }: {
|
|
|
|
imports = [ ./nixos ./home ];
|
|
|
|
systems = [ "x86_64-linux" ];
|
2024-07-05 13:29:07 +02:00
|
|
|
flake.stateVersion = "24.05";
|
2024-07-05 22:07:52 +02:00
|
|
|
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 = [ ./. ]; });
|
|
|
|
};
|
2024-06-18 20:32:19 +02:00
|
|
|
config._module.args = {
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
2024-07-05 22:07:52 +02:00
|
|
|
nvim = config.packages.nvim;
|
|
|
|
scripts = config.packages.scripts;
|
2024-06-18 20:32:19 +02:00
|
|
|
})
|
2024-06-21 19:54:47 +02:00
|
|
|
inputs.sal.overlays.default
|
2024-06-18 20:32:19 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|