refactor!: switch to dendritic pattern

BREAKING CHANGE: complete reorganization of the repository
This commit is contained in:
phundrak committed 2026-09-30 18:36:06 +02:00
1 parent 12684b4e9c
commit 5f4a7a4a42
323 files changed
+7117 -7380

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
{
flake.modules.homeManager.wlsunset = {
config,
lib,
...
}:
with lib; let
cfg = config.home.desktop.wlsunset;
in {
options.home.desktop.wlsunset = {
enable = mkEnableOption "Enables wlsunset";
latitude = mkOption {
type = with types; nullOr (oneOf [str ints.unsigned float]);
default = 48.5;
};
longitude = mkOption {
type = with types; nullOr (oneOf [str ints.unsigned float]);
default = 2.2;
};
};
config.services.wlsunset = mkIf cfg.enable {
inherit (cfg) enable latitude longitude;
};
};
}