Compare commits

..

2 commits

Author SHA1 Message Date
5ee0425ace
feat: open port for calibre 2025-04-13 17:29:20 +02:00
8cf793fa13
feat: add pre-commit hooks 2025-04-13 17:29:19 +02:00
2 changed files with 63 additions and 70 deletions

3
.gitignore vendored
View file

@ -1,5 +1,2 @@
### direnv ###
.direnv
### pre-commit ###
.pre-commit-config.yaml

View file

@ -1,5 +1,6 @@
{
inputs = {
inputs =
{
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
master.url = "github:nixos/nixpkgs";
stable.url = "github:nixos/nixpkgs/nixos-24.11";
@ -56,11 +57,11 @@
arkenfox-userjs.flake = false;
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} ({self, ...}: {
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ self, pkgs, ... }: {
# We define our own systems below. you can still use this to add system specific outputs to your flake.
# See: https://flake.parts/getting-started
systems = ["x86_64-linux"];
systems = [ "x86_64-linux" ];
# import clan-core modules
imports = [
@ -68,23 +69,18 @@
inputs.git-hooks-nix.flakeModule
];
perSystem = {
config,
inputs',
pkgs,
...
}: {
devShells.default =
pkgs.mkShell {
packages = [inputs'.clan-core.packages.clan-cli pkgs.alejandra];
}
// config.pre-commit.devShell;
perSystem = { config, inputs', pkgs, ... }: {
devShells.default = pkgs.mkShell {
packages = [ inputs'.clan-core.packages.clan-cli pkgs.alejandra ];
};
pre-commit.settings.hooks = {
alejandra.enable = true;
check-merge-conflicts.enable = true;
flake-checker.enable = true;
deadnix.enable = true;
nil.enable = true;
statix.enable = true;
};
};