mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: init
This commit is contained in:
commit
c19ea940bd
320 changed files with 23845 additions and 0 deletions
14
parts/default.nix
Executable file
14
parts/default.nix
Executable file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
perSystem = {
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
self',
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./devshells.nix
|
||||
./pre-commit.nix
|
||||
];
|
||||
};
|
||||
}
|
22
parts/devshells.nix
Executable file
22
parts/devshells.nix
Executable 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
7
parts/pre-commit.nix
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
pre-commit.settings.hooks = {
|
||||
alejandra.enable = true;
|
||||
commitizen.enable = true;
|
||||
# statix.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue