From 334fe8cab3e47995da20fad8e84579bdd2dd9c90 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 3 Aug 2021 10:09:34 -0600 Subject: [PATCH] [NixOS] Use jonaburg picom --- nixos/flake.nix | 1 + nixos/home-manager.nix | 4 +--- nixos/overlay.nix | 10 ++++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 nixos/overlay.nix diff --git a/nixos/flake.nix b/nixos/flake.nix index 2144a5a8..4a1b2970 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -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 diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 03c3751b..8e5220fe 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -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; }; diff --git a/nixos/overlay.nix b/nixos/overlay.nix new file mode 100644 index 00000000..1c2b3758 --- /dev/null +++ b/nixos/overlay.nix @@ -0,0 +1,10 @@ +final: prev: { + picom = prev.picom.overrideAttrs(_: { + src = prev.fetchFromGitHub { + repo = "picom"; + owner = "jonaburg"; + rev = "a8445684fe18946604848efb73ace9457b29bf80"; + sha256 = "sha256-R+YUGBrLst6CpUgG9VCwaZ+LiBSDWTp0TLt1Ou4xmpQ="; + }; + }); +}