mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
bspwm-stubs: add stubs for bspwm tests
Reducing closure from 500MB to 357MB
This commit is contained in:
13
tests/modules/services/window-managers/bspwm/bspwm-stubs.nix
Normal file
13
tests/modules/services/window-managers/bspwm/bspwm-stubs.nix
Normal file
@@ -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 = { bspwm = { }; };
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(_final: _prev: {
|
||||
dbus = config.lib.test.mkStubPackage { name = "dbus"; };
|
||||
systemd =
|
||||
lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { };
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./bspwm-stubs.nix ];
|
||||
|
||||
xsession.windowManager.bspwm = {
|
||||
enable = true;
|
||||
monitors.focused = [ "desktop 1" "d'esk top" ]; # pathological desktop names
|
||||
|
||||
Reference in New Issue
Block a user