cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
23 lines
509 B
Nix
23 lines
509 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.waybar = {
|
|
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
|
enable = true;
|
|
systemd.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/waybar/config
|
|
assertPathNotExists home-files/.config/waybar/style.css
|
|
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/waybar.service \
|
|
${./systemd-with-graphical-session-target.service}
|
|
'';
|
|
};
|
|
}
|