1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00
flake/systems/default.nix

30 lines
537 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; };
};
};
}