mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 19:46:30 +02:00
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.
17 lines
416 B
Nix
17 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}
|
|
'';
|
|
}
|