meta: format
This commit is contained in:
41
flake.nix
41
flake.nix
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user