mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2025-09-28 01:29:03 +03:00
[nix] Fix configuration
Reuse common shell for nix package. Add options for nix-way configuration of yandex music. Change-Id: I71a209a8ca8b5e3c5c08349b8da5ba91182a919e
This commit is contained in:
27
README.md
27
README.md
@@ -244,27 +244,24 @@ nix-build --expr '(import <nixpkgs> {}).callPackage ./nix {}'
|
||||
};
|
||||
```
|
||||
|
||||
2. Import module in your `configuration.nix` or `home-manager.nix`
|
||||
|
||||
2. Import module in your `configuration.nix`:
|
||||
```nix
|
||||
imports = [
|
||||
yandex-music.nixosModule
|
||||
yandex-music.nixosModules.default
|
||||
];
|
||||
```
|
||||
|
||||
3. Add package `yandex-music`
|
||||
or in `home-manager.nix`:
|
||||
```nix
|
||||
imports = [
|
||||
yandex-music.homeManagerModules.default
|
||||
];
|
||||
```
|
||||
|
||||
For `configuration.nix`:
|
||||
|
||||
3. Enable `yandex-music`
|
||||
|
||||
```nix
|
||||
environment.systemPackages = with pkgs; [
|
||||
yandex-music
|
||||
];
|
||||
```
|
||||
For Home Manager:
|
||||
|
||||
```nix
|
||||
home.packages = with pkgs; [
|
||||
yandex-music
|
||||
];
|
||||
programs.yandex-music.enable = true;
|
||||
programs.yandex-music.tray.enable = true; # to enable tray support
|
||||
```
|
||||
|
Reference in New Issue
Block a user