1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

polybar: use add .ini suffix to configuration file

The old name is deprecated and causes a warning to be logged.
This commit is contained in:
Robert Helgesson 2022-08-07 10:39:03 +02:00
parent d8d9ff0b2d
commit 91f26e0b0e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 4 additions and 4 deletions

View file

@ -199,14 +199,14 @@ in {
]; ];
home.packages = [ cfg.package ]; home.packages = [ cfg.package ];
xdg.configFile."polybar/config".source = configFile; xdg.configFile."polybar/config.ini".source = configFile;
systemd.user.services.polybar = { systemd.user.services.polybar = {
Unit = { Unit = {
Description = "Polybar status bar"; Description = "Polybar status bar";
PartOf = [ "tray.target" ]; PartOf = [ "tray.target" ];
X-Restart-Triggers = X-Restart-Triggers =
[ "${config.xdg.configFile."polybar/config".source}" ]; [ "${config.xdg.configFile."polybar/config.ini".source}" ];
}; };
Service = { Service = {

View file

@ -50,8 +50,8 @@
assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf' assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf'
assertFileRegex $serviceFile 'ExecStart=.*/bin/polybar-start' assertFileRegex $serviceFile 'ExecStart=.*/bin/polybar-start'
assertFileExists home-files/.config/polybar/config assertFileExists home-files/.config/polybar/config.ini
assertFileContent home-files/.config/polybar/config \ assertFileContent home-files/.config/polybar/config.ini \
${./basic-configuration.conf} ${./basic-configuration.conf}
''; '';
}; };