summaryrefslogtreecommitdiff
path: root/lib/default.nix
blob: 40758eb9db03ff7f232e3883b966a9ceaf058a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  mkDevenv = {
    devenv,
    flake-parts,
    my-nixpkgs,
    ...
  } @ inputs: config:
    flake-parts.lib.mkFlake {inherit inputs;} {
      imports = [devenv.flakeModule];
      systems = ["x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
      perSystem = {...} @ perSystemInputs: {
        devenv.shells.default =
          {
            imports = [my-nixpkgs.devenvModules.personal];
          }
          // config perSystemInputs;
      };
    };
}