feat: init

This commit is contained in:
Nick 2024-10-06 15:25:05 -05:00
commit c19ea940bd
320 changed files with 23845 additions and 0 deletions

14
parts/default.nix Executable file
View file

@ -0,0 +1,14 @@
{
perSystem = {
pkgs,
lib,
config,
self',
...
}: {
imports = [
./devshells.nix
./pre-commit.nix
];
};
}

22
parts/devshells.nix Executable file
View file

@ -0,0 +1,22 @@
{
pkgs,
config,
...
}: {
devShells = {
default = pkgs.mkShell {
packages = builtins.attrValues {
inherit
(pkgs)
age
alejandra
just
nil
sops
ssh-to-age
;
};
shellHook = "${config.pre-commit.installationScript}";
};
};
}

7
parts/pre-commit.nix Executable file
View file

@ -0,0 +1,7 @@
{
pre-commit.settings.hooks = {
alejandra.enable = true;
commitizen.enable = true;
# statix.enable = true;
};
}