forked from colonelpanic/dotfiles
[NixOS] Enable picom vsync for machines other than ryzen-shine
This commit is contained in:
parent
0c9f37f014
commit
bf132b32b4
@ -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
8
nixos/options.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ lib, ... }: {
|
||||
options = {
|
||||
modules.xmonad.picom.vSync.enable = lib.makeOption {
|
||||
default = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
}
|
@ -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"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user