diff --git a/tests/modules/services/window-managers/spectrwm/spectrwm-simple-config.nix b/tests/modules/services/window-managers/spectrwm/spectrwm-simple-config.nix index 3ba13b4d3..8c7fd00cf 100644 --- a/tests/modules/services/window-managers/spectrwm/spectrwm-simple-config.nix +++ b/tests/modules/services/window-managers/spectrwm/spectrwm-simple-config.nix @@ -1,6 +1,8 @@ { ... }: { + imports = [ ./spectrwm-stubs.nix ]; + xsession.windowManager.spectrwm = { enable = true; settings = { diff --git a/tests/modules/services/window-managers/spectrwm/spectrwm-stubs.nix b/tests/modules/services/window-managers/spectrwm/spectrwm-stubs.nix new file mode 100644 index 000000000..7f64ae083 --- /dev/null +++ b/tests/modules/services/window-managers/spectrwm/spectrwm-stubs.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: { + # Avoid unnecessary downloads in CI jobs and/or make out paths constant, i.e., + # not containing hashes, version numbers etc. + test.stubs = { spectrwm = { }; }; + + nixpkgs.overlays = [ + (_final: _prev: { + dbus = config.lib.test.mkStubPackage { name = "dbus"; }; + systemd = + lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { }; + }) + ]; +}