|
@@ -31,7 +31,7 @@
|
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
git-hooks.url = "github:cachix/git-hooks.nix";
|
|
git-hooks.url = "github:cachix/git-hooks.nix";
|
|
|
- git-hooks.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
+ git-hooks.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
|
|
|
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
|
|
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
|
|
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
|
|
@@ -53,25 +53,37 @@
|
|
|
modules = import ./modules;
|
|
modules = import ./modules;
|
|
|
|
|
|
|
|
formatter = lib.eachSystem (_system: pkgs: pkgs.nixfmt-tree);
|
|
formatter = lib.eachSystem (_system: pkgs: pkgs.nixfmt-tree);
|
|
|
- packages = lib.eachSystem (system: pkgs: import ./packages {
|
|
|
|
|
- inherit pkgs;
|
|
|
|
|
- nixvim = inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule { };
|
|
|
|
|
- });
|
|
|
|
|
- devShells = lib.eachSystem (system: pkgs: import ./shell.nix {
|
|
|
|
|
- inherit pkgs system;
|
|
|
|
|
- # inherit (self.checks.${system}.pre-commit-check) shellHook;
|
|
|
|
|
- # inherit (self.checks.${system}.pre-commit-check) enabledPackages;
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- checks = lib.eachSystem (system: _pkgs: {
|
|
|
|
|
- pre-commit-check = inputs.git-hooks.lib.${system}.run {
|
|
|
|
|
- src = ./.;
|
|
|
|
|
- hooks = {
|
|
|
|
|
- deadnix.enable = true;
|
|
|
|
|
- nixpkgs-fmt.enable = true;
|
|
|
|
|
|
|
+ packages = lib.eachSystem (
|
|
|
|
|
+ system: pkgs:
|
|
|
|
|
+ import ./packages {
|
|
|
|
|
+ inherit pkgs;
|
|
|
|
|
+ nixvim = inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule { };
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ devShells = lib.eachSystem (
|
|
|
|
|
+ system: pkgs:
|
|
|
|
|
+ import ./shell.nix {
|
|
|
|
|
+ inherit pkgs system;
|
|
|
|
|
+
|
|
|
|
|
+ inherit (self.checks.${system}.pre-commit-check) shellHook;
|
|
|
|
|
+ inherit (self.checks.${system}.pre-commit-check) enabledPackages;
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ checks = lib.eachSystem (
|
|
|
|
|
+ system: _pkgs: {
|
|
|
|
|
+ pre-commit-check = inputs.git-hooks.lib.${system}.run {
|
|
|
|
|
+ src = ./.;
|
|
|
|
|
+ hooks = {
|
|
|
|
|
+ nixfmt.enable = true;
|
|
|
|
|
+ # statix.enable = true;
|
|
|
|
|
+ deadnix.enable = true;
|
|
|
|
|
+ commitizen.enable = true;
|
|
|
|
|
+ trim-trailing-whitespace.enable = true;
|
|
|
|
|
+ };
|
|
|
};
|
|
};
|
|
|
- };
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
|
|
|
templates = {
|
|
templates = {
|
|
|
devenv = {
|
|
devenv = {
|