Skip to content

Commit

Permalink
aerospace: fix on-window-detected
Browse files Browse the repository at this point in the history
  • Loading branch information
talhaHavadar committed Nov 14, 2024
1 parent 6c71c49 commit 44a46ea
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion modules/services/aerospace/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ let

format = pkgs.formats.toml { };
configFile = format.generate "aerospace.toml" cfg.settings;
callbackConf =
with lib.types;
oneOf [
bool
int
float
str
path
attrs
]
// {
description = "AeroSpace config callback (bool, int, float, str, path or attrs)";
};

in

{
Expand Down Expand Up @@ -71,7 +85,7 @@ in
description = "Default orientation for the root container.";
};
on-window-detected = lib.mkOption {
type = listOf str;
type = listOf (attrsOf (either callbackConf (listOf callbackConf)));
default = [ ];
description = "Commands to run every time a new window is detected.";
};
Expand Down

0 comments on commit 44a46ea

Please sign in to comment.