mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-08-08 19:34:39 -05:00
feat: init
This commit is contained in:
parent
be12403f13
commit
7145b8a9fa
21 changed files with 591 additions and 9 deletions
8
parts/devshells.nix → parts/config/devshells.nix
Normal file → Executable file
8
parts/devshells.nix → parts/config/devshells.nix
Normal file → Executable file
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
pkgs-stable,
|
||||
...
|
||||
}: {
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
packages = builtins.attrValues {
|
||||
|
@ -9,7 +13,7 @@
|
|||
nil
|
||||
;
|
||||
inherit
|
||||
(pkgs.elmPackages)
|
||||
(pkgs-stable.elmPackages)
|
||||
elm
|
||||
elm-format
|
||||
elm-land
|
15
parts/default.nix
Normal file → Executable file
15
parts/default.nix
Normal file → Executable file
|
@ -5,9 +5,16 @@
|
|||
config,
|
||||
self',
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./devshells.nix
|
||||
];
|
||||
}: 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