mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 19:46:30 +02:00
Swaynag is a replacement of i3-nag for sway. Swaynag is embedded in Sway's build process albeit it is not an integral part of Sway, therefore it has been added under `wayland.windowManager.sway` instead of `programs`. It can be moved at a later time if necessary. Two unit tests were added validate the module behavior for an empty configuration and the example configuration.
31 lines
577 B
Nix
31 lines
577 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
wayland.windowManager.sway.swaynag = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
"<config>" = {
|
|
edge = "bottom";
|
|
font = "Dina 12";
|
|
};
|
|
|
|
green = {
|
|
edge = "top";
|
|
background = "00AA00";
|
|
text = "FFFFFF";
|
|
button-background = "00CC00";
|
|
message-padding = 10;
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/swaynag/config \
|
|
${./swaynag-example-settings-expected.conf}
|
|
'';
|
|
};
|
|
}
|