mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
hyprland: use package stubs
Reducing closure size for tests.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{ config, lib, ... }: {
|
||||
# Avoid unnecessary downloads in CI jobs and/or make out paths constant, i.e.,
|
||||
# not containing hashes, version numbers etc.
|
||||
test.stubs = {
|
||||
xdg-desktop-portal = { };
|
||||
xwayland = { };
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(_final: _prev: {
|
||||
dbus = config.lib.test.mkStubPackage { name = "dbus"; };
|
||||
hyprland = lib.makeOverridable
|
||||
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
|
||||
xdg-desktop-portal-hyprland = lib.makeOverridable (_:
|
||||
config.lib.test.mkStubPackage { name = "xdg-desktop-portal-hyprland"; })
|
||||
{ };
|
||||
systemd =
|
||||
lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { };
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -1,10 +1,6 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
{ config, ... }: {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = lib.makeOverridable
|
||||
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
|
||||
plugins =
|
||||
[ "/path/to/plugin1" (config.lib.test.mkStubPackage { name = "foo"; }) ];
|
||||
};
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{ config, lib, ... }:
|
||||
{ config, ... }: {
|
||||
imports = [ ./hyprland-stubs.nix ];
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = lib.makeOverridable
|
||||
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
|
||||
plugins =
|
||||
[ "/path/to/plugin1" (config.lib.test.mkStubPackage { name = "foo"; }) ];
|
||||
settings = {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{ ... }: {
|
||||
imports = [ ./hyprland-stubs.nix ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{ ... }: {
|
||||
{
|
||||
imports = [ ./hyprland-stubs.nix ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{ ... }: {
|
||||
{
|
||||
imports = [ ./hyprland-stubs.nix ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
||||
portalPackage = null;
|
||||
|
||||
settings = {
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{ config, lib, ... }:
|
||||
{ config, ... }: {
|
||||
imports = [ ./hyprland-stubs.nix ];
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = lib.makeOverridable
|
||||
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
|
||||
plugins =
|
||||
[ "/path/to/plugin1" (config.lib.test.mkStubPackage { name = "foo"; }) ];
|
||||
settings = {
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./hyprland-stubs.nix ];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = lib.makeOverridable
|
||||
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
|
||||
settings = {
|
||||
source = [ "sourced.conf" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user