nixos-test-pixelfed-wip #22
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (builtins) toString;
|
inherit (builtins) toString;
|
||||||
inherit (lib) mkOption;
|
inherit (lib) mkOption mkEnableOption;
|
||||||
inherit (lib.types) types;
|
inherit (lib.types) types;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
@ -15,10 +15,7 @@ in {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
fediversity = {
|
fediversity = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "the collection of services bundled under Fediversity";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
garage = mkOption {
|
garage = mkOption {
|
||||||
type = types.anything;
|
type = types.anything;
|
||||||
Niols marked this conversation as resolved
Outdated
|
|||||||
|
@ -28,9 +25,9 @@ in {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
};
|
};
|
||||||
|
|
||||||
mastodon.enable = mkOption { type = types.bool; default = false; };
|
mastodon.enable = mkEnableOption "default Fediversity Mastodon configuration";
|
||||||
Niols marked this conversation as resolved
Outdated
taeer
commented
should be should be `types.str`
`types.string` was being used for too many thing so it got deprecated and now there are several different string types. `types.str` is the one where you don't want to merge definitions if it's defined in more than one place
Niols
commented
Done in Done in d97772ccc4008417aec2117d62031e9123d8deba.
|
|||||||
pixelfed.enable = mkOption { type = types.bool; default = false; };
|
pixelfed.enable = mkEnableOption "default Fediversity Pixelfed configuration";
|
||||||
peertube.enable = mkOption { type = types.bool; default = false; };
|
peertube.enable = mkEnableOption "default Fediversity PeerTube configuration";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Niols marked this conversation as resolved
Outdated
taeer
commented
Similarly, Similarly, `mkEnableOption` here
|
|||||||
|
|
Reference in a new issue
This can just be
Thanks! Done in
2ff8975b6b
.