2eafb8192e
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
21 lines
534 B
Nix
21 lines
534 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
services.polybar = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
script = "polybar bar &";
|
|
};
|
|
|
|
nmt.script = ''
|
|
serviceFile=home-files/.config/systemd/user/polybar.service
|
|
|
|
assertFileExists $serviceFile
|
|
assertFileNotRegex $serviceFile 'X-Restart-Triggers=/nix/store/.*-polybar.conf$'
|
|
assertFileRegex $serviceFile 'ExecStart=.*/bin/polybar-start'
|
|
|
|
assertPathNotExists home-files/.config/polybar/config.ini
|
|
'';
|
|
};
|
|
}
|