From fba79883f50b79da277a12c4fff0974dccf9ceae Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 6 Sep 2020 01:46:14 +0200 Subject: [PATCH] Downgrade waybar to version 0.9.2 --- modules/gui.nix | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/modules/gui.nix b/modules/gui.nix index fafd37a..8839aef 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -1,6 +1,17 @@ { config, lib, pkgs, ... }: -let tmux_config = builtins.readFile /home/coolneng/.tmux.conf; +let + tmux_config = builtins.readFile /home/coolneng/.tmux.conf; + + # Fetch old version of waybar + pinnedpkgs = import (builtins.fetchGit { + name = "my-old-revision"; + url = "https://github.com/nixos/nixpkgs-channels/"; + ref = "refs/heads/nixpkgs-unstable"; + rev = "c83e13315caadef275a5d074243c67503c558b3b"; + }) { }; + + old-waybar = pinnedpkgs.waybar; in { # Display manager @@ -20,21 +31,21 @@ in { # Window manager programs.sway = { enable = true; - extraPackages = with pkgs; [ - xwayland - swaylock - swayidle - swaybg - rofi - waybar - clipman - wl-clipboard - grim - slurp - light - imv - kanshi - kitty + extraPackages = [ + pkgs.xwayland + pkgs.swaylock + pkgs.swayidle + pkgs.swaybg + pkgs.rofi + old-waybar + pkgs.clipman + pkgs.wl-clipboard + pkgs.grim + pkgs.slurp + pkgs.light + pkgs.imv + pkgs.kanshi + pkgs.kitty ]; extraSessionCommands = '' export MOZ_ENABLE_WAYLAND=1