Compare commits
2 Commits
3dd048ebe3
...
19452a8557
| Author | SHA1 | Date | |
|---|---|---|---|
|
19452a8557
|
|||
|
fb515d205b
|
6
.pre-commit-config.yaml
Normal file
6
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/nixos/nixfmt
|
||||||
|
rev: v1.2.0
|
||||||
|
hooks:
|
||||||
|
- id: nixfmt-nix
|
||||||
|
args: [--, --check]
|
||||||
25
flake.nix
25
flake.nix
@@ -94,11 +94,22 @@
|
|||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
} { };
|
} { };
|
||||||
}
|
}
|
||||||
// flake-utils.lib.eachDefaultSystem (system: {
|
// flake-utils.lib.eachDefaultSystem (
|
||||||
packages = import ./packages {
|
system:
|
||||||
inherit my-lib;
|
let
|
||||||
lib = nixpkgs.lib;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
} (inputs // { inherit system; });
|
in
|
||||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
{
|
||||||
});
|
packages = import ./packages {
|
||||||
|
inherit my-lib;
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
} (inputs // { inherit system; });
|
||||||
|
|
||||||
|
formatter = pkgs.nixfmt-tree;
|
||||||
|
|
||||||
|
devShells.default = pkgs.mkShell {
|
||||||
|
packages = [ pkgs.pre-commit ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
[formatter.nix]
|
|
||||||
command = "nix"
|
|
||||||
options = ["fmt"]
|
|
||||||
includes = [ "*.nix" ]
|
|
||||||
@@ -57,6 +57,11 @@ in
|
|||||||
|
|
||||||
home.file.".assets".source = "${inputs.self}/assets";
|
home.file.".assets".source = "${inputs.self}/assets";
|
||||||
|
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
stylix.targets.neovim.enable = false;
|
stylix.targets.neovim.enable = false;
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user