mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
26 lines
641 B
Nix
26 lines
641 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "21.11";
|
|
|
|
programs.waybar = {
|
|
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
|
enable = true;
|
|
systemd.enable = true;
|
|
systemd.target = "sway-session.target";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/waybar/config
|
|
assertPathNotExists home-files/.config/waybar/style.css
|
|
|
|
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/waybar.service)
|
|
assertFileContent "$serviceFile" ${
|
|
./systemd-with-graphical-session-target.service
|
|
}
|
|
'';
|
|
};
|
|
}
|