mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: init
This commit is contained in:
commit
96c6f790fc
804 changed files with 33411 additions and 0 deletions
26
templates/typst/parts/config/devshells.nix
Executable file
26
templates/typst/parts/config/devshells.nix
Executable file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
just
|
||||
nil
|
||||
typst
|
||||
tinymist
|
||||
typstyle
|
||||
yamlfmt
|
||||
nixfmt-rfc-style
|
||||
;
|
||||
inherit (pkgs.nodePackages)
|
||||
"@commitlint/config-conventional"
|
||||
;
|
||||
};
|
||||
};
|
||||
shellHook = "${config.pre-commit.installationScript}";
|
||||
};
|
||||
}
|
7
templates/typst/parts/config/pre-commit.nix
Executable file
7
templates/typst/parts/config/pre-commit.nix
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
pre-commit.settings.hooks = {
|
||||
nixfmt.enable = true;
|
||||
commitizen.enable = true;
|
||||
statix.enable = true;
|
||||
};
|
||||
}
|
24
templates/typst/parts/default.nix
Executable file
24
templates/typst/parts/default.nix
Executable file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue