1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 00:00:44 +01:00
flake/systems/default.nix
2025-04-03 00:36:22 +08:00

31 lines
543 B
Nix

# SPDX-FileCopyrightText: 2025 Ryan Cao <hello@ryanccn.dev>
#
# SPDX-License-Identifier: Apache-2.0
{
inputs,
withSystem,
...
}:
let
specialArgsModule = (
{ pkgs, ... }:
{
_module.args = {
inputs' = withSystem pkgs.stdenvNoCC.hostPlatform.system (builtins.getAttr "inputs'");
};
}
);
in
{
flake.darwinConfigurations = {
caladan = inputs.nix-darwin.lib.darwinSystem {
modules = [
specialArgsModule
./caladan
];
specialArgs = { inherit inputs; };
};
};
}