2024-05-09 18:04:48 +02:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
config = {
|
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { };
|
|
|
|
settings = [
|
|
|
|
{ include = "path/to/included/file"; }
|
|
|
|
{
|
|
|
|
output = {
|
2024-09-13 10:51:33 +02:00
|
|
|
criteria = "Iiyama North America PLE2483H-DP";
|
|
|
|
alias = "iiyama";
|
2024-05-09 18:04:48 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
profile.name = "nomad";
|
|
|
|
profile.outputs = [{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "enable";
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
profile.name = "desktop";
|
|
|
|
profile.exec = [ ''echo "1 two 3"'' ''echo "4 five 6"'' ];
|
|
|
|
profile.outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "disable";
|
|
|
|
}
|
|
|
|
{
|
2024-09-13 10:51:33 +02:00
|
|
|
criteria = "$iiyama";
|
2024-05-09 18:04:48 +02:00
|
|
|
status = "enable";
|
|
|
|
position = "0,0";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Iiyama North America PLE2483H-DP 1158765348486";
|
|
|
|
status = "enable";
|
|
|
|
position = "1920,0";
|
|
|
|
scale = 2.1;
|
|
|
|
mode = "1920x1080";
|
|
|
|
transform = "flipped-270";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
profile.outputs = [{
|
|
|
|
criteria = "LVDS-1";
|
|
|
|
status = "enable";
|
|
|
|
}];
|
|
|
|
profile.exec = ''echo "7 eight 9"'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=home-files/.config/systemd/user/kanshi.service
|
|
|
|
assertFileExists $serviceFile
|
|
|
|
|
|
|
|
assertFileExists home-files/.config/kanshi/config
|
|
|
|
assertFileContent home-files/.config/kanshi/config \
|
|
|
|
${./new-configuration.conf}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|