diff --git a/tests/modules/services/window-managers/wayfire/configuration.nix b/tests/modules/services/window-managers/wayfire/configuration.nix index 07042329..d199e920 100644 --- a/tests/modules/services/window-managers/wayfire/configuration.nix +++ b/tests/modules/services/window-managers/wayfire/configuration.nix @@ -1,4 +1,6 @@ { ... }: { + imports = [ ./wayfire-stubs.nix ]; + wayland.windowManager.wayfire = { enable = true; package = null; diff --git a/tests/modules/services/window-managers/wayfire/wayfire-stubs.nix b/tests/modules/services/window-managers/wayfire/wayfire-stubs.nix new file mode 100644 index 00000000..0fd2bf85 --- /dev/null +++ b/tests/modules/services/window-managers/wayfire/wayfire-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 = { wayfire = { }; }; + + nixpkgs.overlays = [ + (_final: _prev: { + dbus = config.lib.test.mkStubPackage { name = "dbus"; }; + systemd = + lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { }; + }) + ]; +} diff --git a/tests/modules/services/window-managers/wayfire/wf-shell.nix b/tests/modules/services/window-managers/wayfire/wf-shell.nix index 2c8221d8..f88761db 100644 --- a/tests/modules/services/window-managers/wayfire/wf-shell.nix +++ b/tests/modules/services/window-managers/wayfire/wf-shell.nix @@ -1,4 +1,6 @@ { pkgs, ... }: { + imports = [ ./wayfire-stubs.nix ]; + wayland.windowManager.wayfire = { enable = true; package = null;