summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix58
1 files changed, 1 insertions, 57 deletions
diff --git a/flake.nix b/flake.nix
index 3bb86b4..5ee48a6 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,40 +9,20 @@
inputs.nixpkgs-lib.follows = "nixpkgs";
};
- neovim = {
- url = "github:neovim/neovim?dir=contrib";
- inputs.nixpkgs.follows = "nixpkgs";
- inputs.flake-utils.follows = "utils";
- };
-
- neovim-nix = {
- url = "github:willruggiano/neovim.nix";
- inputs = {
- nixpkgs.follows = "nixpkgs";
- flake-parts.follows = "parts";
- pre-commit-nix.follows = "pre-commit";
- neovim.follows = "neovim";
- };
- };
-
pre-commit = {
url = "github:cachix/pre-commit-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs-stable.follows = "nixpkgs";
- flake-utils.follows = "utils";
};
};
-
- # this is to prevent multiple versions in lockfile
- utils.url = "github:numtide/flake-utils";
};
outputs = {parts, ...} @ inputs:
parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.pre-commit.flakeModule
- inputs.neovim-nix.flakeModule
+ ./dev.nix
./neovim.nix
];
@@ -52,41 +32,5 @@
"x86_64-darwin"
"aarch64-darwin"
];
-
- perSystem = {
- pkgs,
- config,
- self',
- ...
- }: {
- packages = {
- getchvim = config.neovim.final;
- default = self'.packages.getchvim;
- };
-
- devShells.default = pkgs.mkShell {
- shellHook = config.pre-commit.installationScript;
-
- packages = with pkgs; [
- actionlint
- self'.formatter
- deadnix
- nil
- statix
- stylua
- ];
- };
-
- formatter = pkgs.alejandra;
-
- pre-commit.settings.hooks = {
- actionlint.enable = true;
- alejandra.enable = true;
- deadnix.enable = true;
- nil.enable = true;
- statix.enable = true;
- stylua.enable = true;
- };
- };
};
}