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
33
templates/elm/parts/config/devshells.nix
Executable file
33
templates/elm/parts/config/devshells.nix
Executable file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
pkgs,
|
||||
pkgs-stable,
|
||||
...
|
||||
}:
|
||||
{
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
age
|
||||
just
|
||||
nil
|
||||
nixd
|
||||
sops
|
||||
ssh-to-age
|
||||
nixfmt-rfc-style
|
||||
;
|
||||
inherit (pkgs-stable.elmPackages)
|
||||
elm
|
||||
elm-format
|
||||
elm-land
|
||||
elm-language-server
|
||||
elm-review
|
||||
elm-test
|
||||
;
|
||||
inherit (pkgs.haskellPackages)
|
||||
nixfmt
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
20
templates/elm/parts/default.nix
Executable file
20
templates/elm/parts/default.nix
Executable 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue