mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
waybar: support enable inspect from service
This commit is contained in:
parent
ffe2d07e77
commit
3d150f601d
1 changed files with 13 additions and 0 deletions
|
@ -209,6 +209,17 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.enableInspect = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Inspect objects and find their CSS classes, experiment with live CSS styles, and lookup the current value of CSS properties.
|
||||
|
||||
See <https://wiki.gnome.org/action/show/Projects/GTK/Inspector for more information.>
|
||||
'';
|
||||
};
|
||||
|
||||
style = mkOption {
|
||||
type = nullOr (either path lines);
|
||||
default = null;
|
||||
|
@ -317,6 +328,8 @@ in {
|
|||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
||||
Restart = "on-failure";
|
||||
KillMode = "mixed";
|
||||
} // optionalAttrs cfg.systemd.enableInspect {
|
||||
Environment = [ "GTK_DEBUG=interactive" ];
|
||||
};
|
||||
|
||||
Install = { WantedBy = [ cfg.systemd.target ]; };
|
||||
|
|
Loading…
Reference in a new issue