26 lines
362 B
Nix
26 lines
362 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.wyrdgard;
|
|
let
|
|
cfg = config.wyrdgard.submodules.socials;
|
|
in
|
|
{
|
|
options.wyrdgard.submodules.socials = with types; {
|
|
enable = mkBoolOpt false "Whether to enable social apps";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
wyrdgard = {
|
|
apps = {
|
|
discord = enabled;
|
|
};
|
|
};
|
|
};
|
|
}
|