From e03dd8b13d5c29660297d4e4fc4d52ba2f99cda2 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sun, 12 Oct 2025 18:09:21 +0100 Subject: [PATCH] qol(youtube music): changed src of ytm --- nix/configuration.nix | 13 +++++++++---- nix/overlays.nix | 34 +++++++++++++++++++++++++++++----- 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/nix/configuration.nix b/nix/configuration.nix index bf2ecfb..18323fa 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -32,10 +32,15 @@ boot.loader.grub.efiSupport = true; boot.loader.grub.efiInstallAsRemovable = true; - nix.settings.experimental-features = [ - "flakes" - "nix-command" - ]; + nix.settings = { + experimental-features = [ + "flakes" + "nix-command" + ]; + trusted-users = [ + "doloro" + ]; + }; networking.hostName = "doloroo-main"; # Define your hostname. diff --git a/nix/overlays.nix b/nix/overlays.nix index 49ba731..18cedce 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -1,4 +1,9 @@ -{ pkgs, lib, inputs, ... }: +{ + pkgs, + lib, + inputs, + ... +}: let arrpc_overlay = ( self: super: { @@ -13,10 +18,29 @@ let }); } ); - gamescope_overlay = self: super: { - gamescope = super.callPackage "${inputs.nixpkgs-gamescope}/pkgs/by-name/ga/gamescope/package.nix" { }; -}; + youtube-music = ( + self: super: { + youtube-music = super.youtube-music.overrideAttrs (prev: { + version = "git"; + src = pkgs.fetchFromGitHub { + owner = "pear-devs"; + repo = "pear-desktop"; + tag = "v3.11.0"; + sha256 = "sha256-M8YFpeauM55fpNyHSGQm8iZieV0oWqOieVThhglKKPE="; + }; + }); + } + ); + gamescope_overlay = self: super: { + gamescope = + super.callPackage "${inputs.nixpkgs-gamescope}/pkgs/by-name/ga/gamescope/package.nix" + { }; + }; in { - nixpkgs.overlays = [ arrpc_overlay gamescope_overlay ]; + nixpkgs.overlays = [ + arrpc_overlay + gamescope_overlay + youtube-music + ]; }