big module system implementation

This commit is contained in:
cnst
2024-08-17 18:28:42 +02:00
parent 505afa84d0
commit 7525ab34c1
155 changed files with 2402 additions and 2029 deletions

View File

@@ -0,0 +1,17 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.userd.copyq;
in {
options = {
modules.userd.copyq.enable = mkEnableOption "Enables copyq";
};
config = mkIf cfg.enable {
services.copyq = {
enable = true;
};
};
}