1

Refactor home modules into config + options

This commit is contained in:
2023-04-26 12:42:48 +02:00
parent 156f87c077
commit 1b83c0131f
31 changed files with 76 additions and 46 deletions

View File

@ -13,7 +13,7 @@ with lib;
with mylib.modules; let
cfg = config.modules.nextcloud;
in {
options.modules.nextcloud = import ./options.nix { inherit lib; };
options.modules.nextcloud = import ./options.nix { inherit lib mylib; };
config = mkIf cfg.enable {
assertions = [

View File

@ -1,7 +1,9 @@
{
lib
lib,
mylib
}:
with lib;
with mylib.modules;
{
enable = mkEnableOpt "Nextcloud Client";
autostart = mkBoolOpt false "Autostart the Nextcloud client (systemd)";