From 168dc61213a7cf536d3cea307ce74116f7428623 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 26 Jul 2024 00:21:42 -0400 Subject: [PATCH] hosts: add rofi-bluetooth overlay --- homeManagerModules/apps/rofi/default.nix | 5 ++++- hosts/common/nix.nix | 26 ++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/apps/rofi/default.nix b/homeManagerModules/apps/rofi/default.nix index 89d5af31..606dc1b8 100644 --- a/homeManagerModules/apps/rofi/default.nix +++ b/homeManagerModules/apps/rofi/default.nix @@ -7,7 +7,10 @@ cfg = config.ar.home; in { config = lib.mkIf cfg.apps.rofi.enable { - home.packages = [pkgs.networkmanager_dmenu]; + home.packages = [ + pkgs.networkmanager_dmenu + pkgs.rofi-bluetooth + ]; programs.rofi = { enable = true; diff --git a/hosts/common/nix.nix b/hosts/common/nix.nix index 4a923aa3..6ce92f04 100644 --- a/hosts/common/nix.nix +++ b/hosts/common/nix.nix @@ -1,4 +1,8 @@ -{config, ...}: { +{ + config, + pkgs, + ... +}: { environment.variables.FLAKE = "github:alyraffauf/nixcfg"; nix.settings = { @@ -16,8 +20,26 @@ trusted-users = ["aly"]; }; - nixpkgs.config.allowUnfree = true; # Allow unfree packages + nixpkgs = { + config.allowUnfree = true; # Allow unfree packages + overlays = [ + (final: prev: { + rofi-bluetooth = + prev.rofi-bluetooth.overrideAttrs + (old: { + version = "unstable-2024-07-25"; + + src = pkgs.fetchFromGitHub { + owner = "alyraffauf"; + repo = old.pname; + rev = "50252e4a9aebe4899a6ef2f7bc11d91b7e4aa8ae"; + sha256 = "sha256-o0Sr3/888L/2KzZZP/EcXx+8ZUzdHB/I/VIeVuJvJks="; + }; + }); + }) + ]; + }; system.autoUpgrade = { enable = true; allowReboot = true;