feat: massive refactor

This commit is contained in:
2025-12-20 12:57:47 +08:00
parent f4c1b313ce
commit 454ad5885d
97 changed files with 1023 additions and 960 deletions

View File

@@ -3,15 +3,15 @@
lib,
...
}:
lib.my.makeSwitch {
inherit config;
optionName = "all window managers";
optionPath = [
"desktop"
"wm"
"all"
];
config' = {
let
cfg = config.my.desktop.wm.all;
in
{
options.my.desktop.wm.all = {
enable = lib.mkEnableOption "all window managers";
};
config = lib.mkIf cfg.enable {
my.desktop.wm = {
cage.enable = true;
niri.enable = true;

View File

@@ -4,13 +4,15 @@
pkgs,
...
}:
lib.my.makeHomePackageConfig {
inherit config pkgs;
packageName = "cage";
packagePath = [ "cage" ];
optionPath = [
"desktop"
"wm"
"cage"
];
let
cfg = config.my.desktop.wm.cage;
in
{
options.my.desktop.wm.cage = {
enable = lib.mkEnableOption "cage";
};
config = lib.mkIf cfg.enable {
my.hm.home.packages = [ pkgs.cage ];
};
}