fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Mihai Fufezanhyprland: allow customizing systemded0770e9

master
677 B21 linesraw
1{ config, lib, ... }:
2
3{
4  wayland.windowManager.hyprland = {
5    enable = true;
6    package = lib.makeOverridable
7      (attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
8    plugins =
9      [ "/path/to/plugin1" (config.lib.test.mkStubPackage { name = "foo"; }) ];
10  };
11
12  test.asserts.warnings.expected = [
13    "You have enabled hyprland.systemd.enable or listed plugins in hyprland.plugins but do not have any configuration in hyprland.settings or hyprland.extraConfig. This is almost certainly a mistake."
14  ];
15  test.asserts.warnings.enable = true;
16
17  nmt.script = ''
18    config=home-files/.config/hypr/hyprland.conf
19    assertFileExists "$config"
20  '';
21}