mirror of
https://github.com/nix-community/home-manager
synced 2024-10-22 13:07:26 +02:00
1a0a5f5037
The default value for `xsession.windowManager.herbstluftwm.tags` is an empty list, but the config file uses `builtins.head` on it, which causes an error upon evaluation. With this change the tags configuration is skipped if the list is empty.
16 lines
416 B
Nix
16 lines
416 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
xsession.windowManager.herbstluftwm = { enable = true; };
|
|
|
|
test.stubs.herbstluftwm = { };
|
|
|
|
nmt.script = ''
|
|
autostart=home-files/.config/herbstluftwm/autostart
|
|
assertFileExists "$autostart"
|
|
assertFileIsExecutable "$autostart"
|
|
|
|
normalizedAutostart=$(normalizeStorePaths "$autostart")
|
|
assertFileContent "$normalizedAutostart" ${./herbstluftwm-no-tags-autostart}
|
|
'';
|
|
}
|