doc: add links for overrides / tweaks

This commit is contained in:
Aaron Bieber 2023-01-30 10:52:06 -07:00
parent fa4c4a01d4
commit 55b5e58c23
No known key found for this signature in database
2 changed files with 31 additions and 0 deletions

View File

@ -53,6 +53,7 @@ in with lib; {
sound.enable = true; sound.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
# https://github.com/NixOS/nixpkgs/pull/213593
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"electron-18.1.0" # obsidian "electron-18.1.0" # obsidian
]; ];

View File

@ -22,6 +22,36 @@ let
in { in {
nixpkgs.overlays = if isUnstable then [ nixpkgs.overlays = if isUnstable then [
tailscale tailscale
# https://github.com/NixOS/nixpkgs/pull/213613
(self: super: {
tidal-hifi = super.tidal-hifi.overrideAttrs (old: rec {
version = "4.4.0";
src = super.fetchurl {
url =
"https://github.com/Mastermindzh/tidal-hifi/releases/download/${version}/tidal-hifi_${version}_amd64.deb";
sha256 = "sha256-6KlcxBV/zHN+ZnvIu1PcKNeS0u7LqhDqAjbXawT5Vv8=";
};
postFixup = ''
makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \
--prefix LD_LIBRARY_PATH : "${
lib.makeLibraryPath old.buildInputs
}" \
"''${gappsWrapperArgs[@]}"
substituteInPlace $out/share/applications/tidal-hifi.desktop \
--replace "/opt/tidal-hifi/tidal-hifi" "tidal-hifi"
for size in 48 64 128 256 512; do
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/
convert $out/share/icons/hicolor/0x0/apps/tidal-hifi.png \
-resize ''${size}x''${size} $out/share/icons/hicolor/''${size}x''${size}/apps/icon.png
done
'';
});
})
(self: super: { (self: super: {
rex = super.rex.overrideAttrs (old: { rex = super.rex.overrideAttrs (old: {
patches = [ patches = [