32 lines
665 B
Nix
32 lines
665 B
Nix
# SPDX-FileCopyrightText: 2025 Ethan Reece <contact@ethanreece.com>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
{ module-name, ... }:
|
|
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
withSystem,
|
|
...
|
|
}:
|
|
{
|
|
flake.nixOnDroidConfigurations = lib.mkIf config.devices.${module-name}.enable (
|
|
let
|
|
system = config.devices.${module-name}.system;
|
|
in
|
|
{
|
|
${module-name} = withSystem system (
|
|
{ pkgs, ... }:
|
|
inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
flakeConfig = config;
|
|
};
|
|
modules = [ ./nix-on-droid.nix ];
|
|
}
|
|
);
|
|
}
|
|
);
|
|
}
|