feat: init

This commit is contained in:
Nick 2025-03-29 23:08:26 -05:00
commit 96c6f790fc
804 changed files with 33411 additions and 0 deletions

19
parts/config/devshells.nix Executable file
View file

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

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

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

20
parts/default.nix Executable file
View file

@ -0,0 +1,20 @@
{
perSystem = {
pkgs,
lib,
config,
self',
...
}: let
configPath = ./config;
devshellImports = let
files = builtins.attrNames (builtins.readDir configPath);
in
map
(name: configPath + "/${name}")
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
in {
imports = devshellImports;
};
}