mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
swaync: use lib.getExe (#6755)
This commit is contained in:
parent
bb036cb353
commit
07547d29e1
1 changed files with 5 additions and 5 deletions
|
|
@ -79,20 +79,20 @@ in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# at-spi2-core is to minimize journalctl noise of:
|
# at-spi2-core is to minimize journalctl noise of:
|
||||||
# "AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files"
|
# "AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files"
|
||||||
home.packages =
|
home.packages = [ cfg.package pkgs.at-spi2-core ];
|
||||||
lib.mkIf (cfg.package != null) [ cfg.package pkgs.at-spi2-core ];
|
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"swaync/config.json" = {
|
"swaync/config.json" = {
|
||||||
source = jsonFormat.generate "config.json" cfg.settings;
|
source = jsonFormat.generate "config.json" cfg.settings;
|
||||||
onChange = "${cfg.package}/bin/swaync-client --reload-config";
|
onChange = "${lib.getExe' cfg.package "swaync-client"} --reload-config";
|
||||||
};
|
};
|
||||||
"swaync/style.css" = lib.mkIf (cfg.style != null) {
|
"swaync/style.css" = lib.mkIf (cfg.style != null) {
|
||||||
|
|
||||||
source = if builtins.isPath cfg.style || lib.isStorePath cfg.style then
|
source = if builtins.isPath cfg.style || lib.isStorePath cfg.style then
|
||||||
cfg.style
|
cfg.style
|
||||||
else
|
else
|
||||||
pkgs.writeText "swaync/style.css" cfg.style;
|
pkgs.writeText "swaync/style.css" cfg.style;
|
||||||
onChange = "${cfg.package}/bin/swaync-client --reload-css";
|
onChange = "${lib.getExe' cfg.package "swaync-client"} --reload-css";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ in {
|
||||||
Service = {
|
Service = {
|
||||||
Type = "dbus";
|
Type = "dbus";
|
||||||
BusName = "org.freedesktop.Notifications";
|
BusName = "org.freedesktop.Notifications";
|
||||||
ExecStart = "${cfg.package}/bin/swaync";
|
ExecStart = "${lib.getExe cfg.package}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue