1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 13:01:09 +01:00
home-manager/tests/modules/services/shikane/basic-configuration.nix
2025-04-20 20:21:46 -05:00

47 lines
1 KiB
Nix

{ config, ... }:
{
config = {
services.shikane = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
profile = [
{
name = "external-monitor-default";
output = [
{
match = "eDP-1";
enable = true;
}
{
match = "HDMI-A-1";
enable = true;
position = {
x = 1920;
y = 0;
};
}
];
}
{
name = "builtin";
output = [
{
match = "eDP-1";
enable = true;
}
];
}
];
};
};
nmt.script = ''
serviceFile=home-files/.config/systemd/user/shikane.service
assertFileExists $serviceFile
assertFileExists home-files/.config/shikane/config.toml
assertFileContent home-files/.config/shikane/config.toml ${./expected.toml}
'';
};
}