2 description = "immae-eu infrastructure";
4 flake-parts.url = "github:hercules-ci/flake-parts";
5 devshell.url = "github:numtide/devshell";
6 # nixpkgs for local tools
7 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
9 flakes.url = "path:./flakes";
11 outputs = inputs@{ self, flake-parts, flakes, ... }:
13 inherit (flakes.subflakes) public private;
14 inherit (public) mypackages;
16 flake-parts.lib.mkFlake { inherit inputs; } ({ withSystem, ... }: {
18 inputs.devshell.flakeModule
19 (mypackages.mylibs.flakePartsAddPerSystem { name = "lib"; type = "unspecified"; })
21 systems = [ "x86_64-linux" ];
22 perSystem = { config, inputs', pkgs, system, ... }:
24 packages = mypackages.packages."${system}";
25 lib = mypackages.lib."${system}";
29 pkgs.nixUnstable pkgs.python3 pkgs.sops
30 pkgs.curl pkgs.shellcheck pkgs.jq
34 { name = "NIX_BUILD_TOP"; value = ""; }
35 { name = "PATH"; prefix = "scripts"; }
36 { name = "NIX_PATH"; value = "nixpkgs=${pkgs.path}"; }
41 inherit (mypackages) mylibs sources overlays;
42 inherit (flakes) subflakes;