refactor!: switch to dendritic pattern

BREAKING CHANGE: complete reorganization of the repository
This commit is contained in:
2026-09-30 18:36:06 +02:00
parent 12684b4e9c
commit 5f4a7a4a42
323 changed files with 7117 additions and 7380 deletions
+30
View File
@@ -0,0 +1,30 @@
{config, ...}: let
m = config.flake.modules.homeManager;
in {
flake.modules.homeManager.my-services = {
config,
lib,
...
}:
with lib; let
cfg = config.home.myServices;
in {
imports = [
m.blanket
m.mbsync
m.mpris-proxy
m.playerctld
];
options.home.myServices.fullDesktop = mkOption {
description = "Enable all modules";
type = types.bool;
default = config.home.fullDesktop;
};
config.home.myServices = {
blanket.enable = mkDefault cfg.fullDesktop;
mbsync.enable = mkDefault cfg.fullDesktop;
mpris-proxy.enable = mkDefault cfg.fullDesktop;
playerctld.enable = mkDefault cfg.fullDesktop;
};
};
}