mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
31 lines
543 B
Nix
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; };
|
|
};
|
|
};
|
|
}
|