1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-30 22:21:02 +01:00
home-manager/tests/modules/services/picom/picom-basic-configuration.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

45 lines
946 B
Nix

{
services.picom = {
enable = true;
fade = true;
fadeDelta = 5;
fadeSteps = [
4.0e-2
4.0e-2
];
fadeExclude = [
"window_type *= 'menu'"
"name ~= 'Firefox$'"
"focused = 1"
];
shadow = true;
shadowOffsets = [
(-10)
(-15)
];
shadowOpacity = 0.8;
shadowExclude = [
"window_type *= 'menu'"
"name ~= 'Firefox$'"
"focused = 1"
];
backend = "xrender";
vSync = true;
settings = {
"unredir-if-possible" = true;
"dbe" = true;
};
extraArgs = [ "--legacy-backends" ];
};
nmt.script = ''
assertFileContent \
home-files/.config/picom/picom.conf \
${./picom-basic-configuration-expected.conf}
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/picom.service)
assertFileContent \
"$serviceFile" \
${./picom-basic-configuration-expected.service}
'';
}