[NixOS] Enable picom vsync for machines other than ryzen-shine

This commit is contained in:
Ivan Malison 2023-08-22 12:32:05 -06:00
parent 0c9f37f014
commit bf132b32b4
3 changed files with 11 additions and 1 deletions

View File

@ -6,6 +6,8 @@
];
features.full.enable = true;
# Needed for now because monitors have different refresh rates
modules.xmonad.picom.vSync.enable = false;
boot.loader.systemd-boot.configurationLimit = 5;

8
nixos/options.nix Normal file
View File

@ -0,0 +1,8 @@
{ lib, ... }: {
options = {
modules.xmonad.picom.vSync.enable = lib.makeOption {
default = true;
type = lib.types.bool;
};
};
}

View File

@ -83,7 +83,7 @@ makeEnable config "modules.xmonad" true {
services.picom = {
enable = true;
vSync = false;
vSync = config.modules.xmonad.picom.vSync.enable;
backend = "glx";
extraArgs = ["--experimental-backends"];