mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
f4f9f1a618
PR #1329
24 lines
546 B
Nix
24 lines
546 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
package = pkgs.writeScriptBin "dummy-waybar" "" // { outPath = "@waybar@"; };
|
|
in {
|
|
config = {
|
|
programs.waybar = {
|
|
inherit package;
|
|
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}
|
|
'';
|
|
};
|
|
}
|