feat: massive refactor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user