Skip to content

Commit

Permalink
fix local flake reference in module
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco committed Dec 15, 2023
1 parent 60e7d80 commit 8e0a8c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
8 changes: 3 additions & 5 deletions flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ localFlake:
inputs.devenv.flakeModule
];

perSystem = { inputs', config, pkgs, ... }: {
packages.kpt = inputs'.kpt.packages.default;
packages.octopilot = inputs'.octopilot.packages.default;
perSystem = { system, pkgs, ... }: {

devenv.shells.default = {
name = "devenv-k8s";
Expand All @@ -27,10 +25,10 @@ localFlake:
pkgs.kubernetes-helm
pkgs.kustomize
pkgs.jq

] ++ localFlake.withSystem system ({config, ...}: [
config.packages.kpt
config.packages.octopilot
];
]);
};
};
}
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,23 @@
flakeModules.default = importApply ./flake-module.nix { inherit withSystem; };
in
{
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];

imports = [
flakeModules.default
];

flake = {
inherit flakeModules;
};

systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];

perSystem = { inputs', ...}: {

packages = {
kpt = inputs'.kpt.packages.default;
octopilot = inputs'.octopilot.packages.default;
};

};
});
}

0 comments on commit 8e0a8c4

Please sign in to comment.