[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 = [ nixpkgs.overlays = [
nix.overlay xmonad.overlay xmonad-contrib.overlay nix.overlay xmonad.overlay xmonad-contrib.overlay
notifications-tray-icon.overlay (import ../dotfiles/config/taffybar/overlay.nix) notifications-tray-icon.overlay (import ../dotfiles/config/taffybar/overlay.nix)
(import ./overlay.nix)
] ++ taffybar.overlays; ] ++ taffybar.overlays;
imports = [ imports = [
home-manager.nixosModule home-manager.nixosModule

View File

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