1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-17 05:35:06 +01:00
home-manager/tests/modules/services/cliphist/cliphist-sway-session-target.nix

21 lines
547 B
Nix
Raw Permalink Normal View History

{ lib, options, ... }:
2023-10-15 14:03:18 +02:00
{
services.cliphist = {
enable = true;
systemdTarget = "sway-session.target";
};
nmt.script = ''
assertFileExists home-files/.config/systemd/user/cliphist.service
assertFileExists home-files/.config/systemd/user/sway-session.target.wants/cliphist.service
2023-10-15 14:03:18 +02:00
'';
test.asserts.warnings.expected = [
"The option `services.cliphist.systemdTarget' defined in ${
lib.showFiles options.services.cliphist.systemdTarget.files
} has been renamed to `services.cliphist.systemdTargets'."
];
2023-10-15 14:03:18 +02:00
}