mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 00:59:44 +01:00
f15b151ca1
Before this commit, a user needed to override the systemd target that would start Waybar with `mkForce`, this is no longer necessary.
25 lines
589 B
Nix
25 lines
589 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
|
|
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/waybar.service \
|
|
${./systemd-with-graphical-session-target.service}
|
|
'';
|
|
};
|
|
}
|