flake.nix: force garnix to build darwin configs
This commit is contained in:
parent
61b6c3f58b
commit
e7b0e679b7
1 changed files with 25 additions and 12 deletions
23
flake.nix
23
flake.nix
|
@ -25,6 +25,7 @@
|
||||||
self',
|
self',
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -37,7 +38,21 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.base-packages = pkgs.symlinkJoin {
|
packages =
|
||||||
|
let
|
||||||
|
darwinConfigs = lib.filterAttrs (
|
||||||
|
_: config: config.eval.config.nixpkgs.system == system
|
||||||
|
) inputs.self.darwinConfigurations;
|
||||||
|
# Force garnix to build the config
|
||||||
|
darwinConfigs' = lib.mapAttrs' (name: config: {
|
||||||
|
name = "__darwinConfigurations_${name}";
|
||||||
|
value = config.system;
|
||||||
|
}) darwinConfigs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Re-export it for convenience and for caching
|
||||||
|
inherit (inputs'.attic.packages) attic-client attic-server;
|
||||||
|
base-packages = pkgs.symlinkJoin {
|
||||||
name = "settei-base";
|
name = "settei-base";
|
||||||
paths = with self'.packages; [
|
paths = with self'.packages; [
|
||||||
helix
|
helix
|
||||||
|
@ -45,10 +60,8 @@
|
||||||
git-commit-last
|
git-commit-last
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# Re-export it for convenience and for caching
|
}
|
||||||
packages = {
|
// darwinConfigs';
|
||||||
inherit (inputs'.attic.packages) attic-client attic-server;
|
|
||||||
};
|
|
||||||
|
|
||||||
formatter = pkgs.nixfmt-rfc-style;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue