Skip to content

Commit

Permalink
Merge pull request #107 from ein-shved/master
Browse files Browse the repository at this point in the history
  • Loading branch information
cucumber-sp authored Sep 3, 2024
2 parents 8d7a26f + da34799 commit 6d55829
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ Native YandexMusic client for Linux. Built using repacking of Windows client (El
- [ASAR archive](#asar-archive)
- [Arch Linux](#arch-linux-1)
- [Debian/Ubuntu](#debianubuntu-1)
- [RPM-based](#rpm-based-1)
- [RPM-based](#rpm-based-1)
- [Run with nix](#run-with-nix)
- [Run with flakes](#run-with-flakes)
- [Run old style](#run-old-style)
- [Install to NixOS](#install-to-nixos)
- [NixOS unstable](#nixos-unstable)
- [Run from unstable channel with flakes](#run-from-unstable-channel-with-flakes)
- [Install from unstable channel](#install-from-unstable-channel)
- [Overriding](#overriding)
- [Built-in module](#built-in-module)
- [Run with flakes](#run-with-flakes)
- [Run old style](#run-old-style)
- [Install to NixOS](#install-to-nixos)

## Screenshots
![image](https://github.com/cucumber-sp/yandex-music-linux/assets/100789522/ab2f69ee-efc4-4a33-8110-131b4c4ff4de)
Expand Down Expand Up @@ -223,15 +228,50 @@ bash build_rpm.sh [-a <x64|armv7l|arm64|all> default=x64]
The `yandex-music` package has unlicensed license, so you need to have
`allowUnfree` option enabled.

### Run with flakes
### NixOS unstable

The `yandex-music` package is
[available](https://github.com/NixOS/nixpkgs/pull/337425) at nixos-unstable
channel.

#### Run from unstable channel with flakes

```bash
nix run github:NixOS/nixpkgs/nixos-unstable#yandex-music
```

#### Install from unstable channel

Add next to your configuration:

```nix
environment.systemPackages = with pkgs; [ yandex-music ];
```

#### Overriding

There is several option of package available to override:

```nix
yandex-music.override {
trayEnabled = true; # Whenether to enable tray support
electronArguments = ""; # Extra arguments to electron executable
}
```

### Built-in module

This repository contains its own nix-related receipts.

#### Run with flakes

Execute next to build and run yandex music directly from github

```bash
nix run github:cucumber-sp/yandex-music-linux
```

### Run old style
#### Run old style

Execute next in this repository to build yandex-music package without using
flakes.
Expand All @@ -240,7 +280,7 @@ flakes.
nix-build --expr '(import <nixpkgs> {}).callPackage ./nix {}'
```

### Install to NixOS
#### Install to NixOS

1. Add input in your flake.nix

Expand Down

0 comments on commit 6d55829

Please sign in to comment.