[NixOS] Use jonaburg picom
This commit is contained in:
parent
613d6f3d97
commit
334fe8cab3
@ -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
|
||||||
|
@ -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
10
nixos/overlay.nix
Normal 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=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user