feat: init

This commit is contained in:
Nick 2024-11-10 22:55:49 -06:00
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
View 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
View 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;
};
}