feat(devShells): shell for NixOS configuration development

This commit is contained in:
Sk7Str1p3 2026-04-28 11:42:19 +03:00
parent f0a1b103e0
commit e4f81f2e3f
No known key found for this signature in database
GPG key ID: 4DD995933D06D43B
4 changed files with 47 additions and 8 deletions

View file

@ -53,20 +53,32 @@ in
}:
{
devShells = builtins.listToAttrs (
map (name: {
inherit name;
value =
devShells =
builtins.listToAttrs (
map (name: {
inherit name;
value =
let
cfg = import ./${name}/default.nix pkgs;
in
pkgs.mkShell {
inherit name;
packages = map (p: p) (builtins.attrValues cfg.packages);
shellHook = cfg.shellHook or "";
};
}) dirs
)
// {
nixos =
let
cfg = import ./${name}/default.nix pkgs;
cfg = import ./nixos.nix pkgs;
in
pkgs.mkShell {
inherit name;
name = "SkyOS";
packages = map (p: p) (builtins.attrValues cfg.packages);
shellHook = cfg.shellHook or "";
};
}) dirs
);
};
};
flake.templates = builtins.listToAttrs (
map (name: {