|
1 | 1 | { |
2 | | - description = "Isolated development shell (rendercv + opencode)"; |
| 2 | + description = "Yury Zakharov CV – RenderCV"; |
3 | 3 |
|
4 | | - inputs = { |
5 | | - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; |
6 | | - }; |
| 4 | + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; |
7 | 5 |
|
8 | 6 | outputs = { self, nixpkgs }: |
9 | 7 | let |
10 | 8 | system = "x86_64-linux"; |
11 | | - |
12 | | - overlays = import ~/.config/nix/devshell/overlays.nix; |
13 | | - |
14 | | - pkgs = import nixpkgs { |
15 | | - inherit system; |
16 | | - config.allowUnfree = true; |
17 | | - inherit overlays; |
18 | | - }; |
19 | | - |
20 | | - importModule = path: import path { inherit pkgs; }; |
21 | | - |
22 | | - baseModule = importModule ~/.config/nix/devshell/modules/base.nix; |
23 | | - |
24 | | - extraModules = [ |
25 | | - # (importModule ~/.config/nix/devshell/modules/dotnet.nix) |
26 | | - # (importModule ~/.config/nix/devshell/modules/get-shit-done.nix) |
27 | | - # import your modules here, see example above |
28 | | - (importModule ~/.config/nix/devshell/modules/rendercv.nix) |
29 | | - ]; |
30 | | - |
31 | | - allModules = [ baseModule ] ++ extraModules; |
32 | | - |
33 | | - merged = { |
34 | | - packages = builtins.concatLists (map (m: m.packages or []) allModules); |
35 | | - env = builtins.foldl' (acc: m: acc // (m.env or {})) {} allModules; |
36 | | - shellHook = builtins.concatStringsSep "\n" (map (m: m.shellHook or "") allModules); |
37 | | - }; |
| 9 | + pkgs = nixpkgs.legacyPackages.${system}; |
38 | 10 | in |
39 | 11 | { |
40 | 12 | devShells.${system}.default = pkgs.mkShell { |
41 | | - packages = merged.packages; |
42 | | - |
43 | | - inherit (merged) env; |
| 13 | + packages = [ pkgs.rendercv ]; |
44 | 14 |
|
45 | 15 | shellHook = '' |
46 | | - # Explicit env injection from modules |
47 | | - ${builtins.concatStringsSep "\n" |
48 | | - (map (name: "export ${name}=\"${merged.env.${name}}\"") |
49 | | - (builtins.attrNames merged.env))} |
50 | | -
|
51 | | - # Run module shellHooks |
52 | | - ${merged.shellHook} |
| 16 | + echo "✅ RenderCV environment ready" |
53 | 17 | ''; |
54 | 18 | }; |
55 | 19 | }; |
|
0 commit comments