TakodaS 149824a515 WIP: nixified webui
currently packaging as a nixosModule so should be easy to integrate with
nixos generators in the future. Also looking at making a docker image
without systemd
2025-03-10 17:51:53 +00:00

35 lines
650 B
Nix

args@{
lib,
self,
pythonSets,
package-name,
nixpkgs,
...
}:
lib.flake.forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
pythonSet = pythonSets.${system};
folders = lib.flake.getSubdirs ./.;
folderAttrs = (
name: {
name = name;
value = import ./${name} (
args
// {
inherit pkgs system pythonSet;
}
); # You can replace this with any value
}
);
in
builtins.listToAttrs (map folderAttrs folders)
// {
default = self.packages.${system}.${package-name}.static;
}
)