meta: format

This commit is contained in:
2025-12-01 14:11:58 +01:00
parent c4084faeff
commit 0147f451a8

View File

@@ -5,18 +5,23 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
}; };
outputs = { outputs =
self, { self
nixpkgs, , nixpkgs
}: let ,
supportedSystems = ["x86_64-linux" "aarch64-linux"]; }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
in { in
packages = forAllSystems (system: let {
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
neovim = import ./nvim-lsp.nix {inherit pkgs;}; neovim = import ./nvim-lsp.nix { inherit pkgs; };
in { in
{
nvim = pkgs.symlinkJoin { nvim = pkgs.symlinkJoin {
name = "nvim"; name = "nvim";
paths = with pkgs; paths = with pkgs;
@@ -41,13 +46,15 @@
chafa chafa
ueberzugpp ueberzugpp
] ]
++ [neovim]; ++ [ neovim ];
}; };
}); });
devShells = forAllSystems (system: let devShells = forAllSystems (system:
let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
in { in
{
default = pkgs.mkShell { default = pkgs.mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.alejandra pkgs.alejandra
@@ -64,14 +71,16 @@
pkgs.tree-sitter pkgs.tree-sitter
pkgs.verible pkgs.verible
pkgs.zls pkgs.zls
(import ./nvim-lsp.nix {inherit pkgs;}) (import ./nvim-lsp.nix { inherit pkgs; })
]; ];
}; };
}); });
overlays = forAllSystems (system: let overlays = forAllSystems (system:
let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
in { in
{
overlay = final: prev: { overlay = final: prev: {
nvim = self.packages.${system}.nvim; nvim = self.packages.${system}.nvim;
}; };