mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-03-12 17:03:49 +00:00
define selfprivacy.passthru option (type = types.submodule)
Stock NixOS passthru option cannot be defined in multiple places. But we need to pass arbitrary parameters between SP modules.
This commit is contained in:
parent
67a943c829
commit
f1d2119f62
1 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
|
@ -139,5 +139,20 @@ with lib;
|
|||
default = null;
|
||||
};
|
||||
};
|
||||
################
|
||||
# passthrough #
|
||||
################
|
||||
passthru = mkOption {
|
||||
type = types.submodule {
|
||||
freeformType = (pkgs.formats.json { }).type;
|
||||
options = { };
|
||||
};
|
||||
default = { };
|
||||
visible = false;
|
||||
description = ''
|
||||
This attribute allows to share data between modules.
|
||||
You can put whatever you want here.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue