Set the nixpkgs platform as a module option.

This commit is contained in:
r-vdp 2023-03-28 14:51:16 +02:00
parent 36b67321c0
commit 6f74507684
No known key found for this signature in database
4 changed files with 15 additions and 11 deletions

View file

@ -9,6 +9,15 @@
];
options = {
nixpkgs = {
# TODO: switch to lib.systems.parsedPlatform
hostPlatform = lib.mkOption {
type = lib.types.str;
example = "x86_64-linux";
};
};
assertions = lib.mkOption {
type = lib.types.listOf lib.types.unspecified;
internal = true;