mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
daaf0c2f8d
- Add `services.kanshi.profiles.<name>.outputs.*.alias` to support new alias directive from kanshi [1]. - Add an assertion to reject aliases not on global scope, which are not allowed on kanshi [2]. - Add a new test to check alias rejection, `alias-assertion`. - Add relevant coverage by modifying the existing "new-configuration" test. - Kanshi also doesn't allow wildcards on global scope [3], correct the faulty test case. [1]:1ed86ce523
[2]:1605f7c813/item/doc/kanshi.5.scd (L78)
[3]:1605f7c813/item/doc/kanshi.5.scd (L80)
18 lines
425 B
Nix
18 lines
425 B
Nix
{ config, pkgs, ... }: {
|
|
config = {
|
|
services.kanshi = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
settings = [{
|
|
profile.name = "nomad";
|
|
profile.outputs = [{
|
|
criteria = "eDP-1";
|
|
alias = "test";
|
|
}];
|
|
}];
|
|
};
|
|
|
|
test.asserts.assertions.expected =
|
|
[ "Output kanshi.*.output.alias can only be defined on global scope" ];
|
|
};
|
|
}
|