fix hyprland wrapper's extraSettings
This commit is contained in:
parent
5b89920a90
commit
0a18f59c13
1 changed files with 20 additions and 4 deletions
|
@ -33,11 +33,27 @@ in {
|
||||||
description = "enable tearing";
|
description = "enable tearing";
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
# TODO specify the type so I can merge everything manually
|
# there's unfortunately no recursive merge function that I know of
|
||||||
# without nix screaming at me because a specific subattrs
|
# which means just `//`ing cfg.extraSettings with settings will
|
||||||
# doesn't exist
|
# overwrite the default settings from this module
|
||||||
|
# my workaround for that right now is to manually `//` or `++` each
|
||||||
|
# list or attrs in cfg.extraSettings - that's why I need these types
|
||||||
|
# whenever I wanna add something else I'll need to add that here
|
||||||
extraSettings = mkOption {
|
extraSettings = mkOption {
|
||||||
type = types.attrs;
|
type = with types; submodule {
|
||||||
|
options = {
|
||||||
|
exec-once = mkOption {
|
||||||
|
description = "commands ran on hyprland launch";
|
||||||
|
default = [];
|
||||||
|
type = listOf str;
|
||||||
|
};
|
||||||
|
exec = mkOption {
|
||||||
|
description = "commands ran on hyprland reload";
|
||||||
|
default = [];
|
||||||
|
type = listOf str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
description = "extra per host hyprland settings";
|
description = "extra per host hyprland settings";
|
||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue