[NixOS] Use jonaburg picom

This commit is contained in:
Ivan Malison 2021-08-03 10:09:34 -06:00
parent 613d6f3d97
commit 334fe8cab3
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
3 changed files with 12 additions and 3 deletions

View File

@ -42,6 +42,7 @@
nixpkgs.overlays = [
nix.overlay xmonad.overlay xmonad-contrib.overlay
notifications-tray-icon.overlay (import ../dotfiles/config/taffybar/overlay.nix)
(import ./overlay.nix)
] ++ taffybar.overlays;
imports = [
home-manager.nixosModule

View File

@ -112,9 +112,7 @@
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
# Temporarily fixes corrupt colours with Mesa 18.
Environment = [ "allow_rgb10_configs=false" ];
ExecStart = "${pkgs.picom}/bin/picom";
ExecStart = "${pkgs.picom}/bin/picom --experimental-backends";
Restart = "always";
RestartSec = 3;
};

10
nixos/overlay.nix Normal file
View File

@ -0,0 +1,10 @@
final: prev: {
picom = prev.picom.overrideAttrs(_: {
src = prev.fetchFromGitHub {
repo = "picom";
owner = "jonaburg";
rev = "a8445684fe18946604848efb73ace9457b29bf80";
sha256 = "sha256-R+YUGBrLst6CpUgG9VCwaZ+LiBSDWTp0TLt1Ou4xmpQ=";
};
});
}