fix hyprland wrapper's extraSettings

This commit is contained in:
jacekpoz 2024-05-03 18:56:16 +02:00
parent 5b89920a90
commit 0a18f59c13
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -33,11 +33,27 @@ in {
description = "enable tearing";
default = false;
};
# TODO specify the type so I can merge everything manually
# without nix screaming at me because a specific subattrs
# doesn't exist
# there's unfortunately no recursive merge function that I know of
# which means just `//`ing cfg.extraSettings with settings will
# 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 {
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";
default = {};
};