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
37
flake.nix
37
flake.nix
|
@ -25,6 +25,7 @@
|
|||
self',
|
||||
pkgs,
|
||||
lib,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -37,18 +38,30 @@
|
|||
];
|
||||
};
|
||||
|
||||
packages.base-packages = pkgs.symlinkJoin {
|
||||
name = "settei-base";
|
||||
paths = with self'.packages; [
|
||||
helix
|
||||
fish
|
||||
git-commit-last
|
||||
];
|
||||
};
|
||||
# Re-export it for convenience and for caching
|
||||
packages = {
|
||||
inherit (inputs'.attic.packages) attic-client attic-server;
|
||||
};
|
||||
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";
|
||||
paths = with self'.packages; [
|
||||
helix
|
||||
fish
|
||||
git-commit-last
|
||||
];
|
||||
};
|
||||
}
|
||||
// darwinConfigs';
|
||||
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue