Working on reshuffling

This commit is contained in:
2026-03-19 08:00:16 +00:00
parent 6277dc4b3a
commit 198899dc82
2 changed files with 30 additions and 16 deletions
+15 -8
View File
@@ -1999,16 +1999,23 @@ let
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
src = "${wofiAssets}/${name}";
});
# Module options
enableWofi = true; # or set to false to disable
in
{
# Option to enable Wofi
options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
# Config applied when module is enabled
config = lib.mkIf (config.enableWofi) {
# Symbolic references to configuration files
environment.etc."xdg/wofi".source = wofiAssets;
environment.etc."xdg/wofi".files = wofiConfs;
options = {
enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
};
# Conditional attributes returned directly
wofi = if enableWofi then {
xdg = {
wofi = {
source = wofiAssets;
files = wofiConfs;
};
};
} else {};
}
#+END_SRC