spotifyd with spotify-tui
This commit is contained in:
parent
7b03b70bb9
commit
1714497695
@ -91,6 +91,7 @@ in {
|
|||||||
xarchiver
|
xarchiver
|
||||||
tdesktop
|
tdesktop
|
||||||
spotifywm
|
spotifywm
|
||||||
|
spotify-tui
|
||||||
discord
|
discord
|
||||||
pulseeffects
|
pulseeffects
|
||||||
] ++ lib.optionals (!isVM) [
|
] ++ lib.optionals (!isVM) [
|
||||||
|
@ -31,6 +31,7 @@ device:
|
|||||||
./workspace/misc.nix
|
./workspace/misc.nix
|
||||||
./workspace/mpv.nix
|
./workspace/mpv.nix
|
||||||
./workspace/rofi.nix
|
./workspace/rofi.nix
|
||||||
|
./workspace/spotifyd.nix
|
||||||
./workspace/xresources.nix
|
./workspace/xresources.nix
|
||||||
./workspace/zsh.nix
|
./workspace/zsh.nix
|
||||||
];
|
];
|
||||||
|
@ -14,13 +14,17 @@ in { pkgs, config, lib, ... }: {
|
|||||||
|
|
||||||
i3lock-fancy-rapid = pkgs.callPackage ./applications/i3lock-fancy-rapid.nix { };
|
i3lock-fancy-rapid = pkgs.callPackage ./applications/i3lock-fancy-rapid.nix { };
|
||||||
|
|
||||||
git-with-libsecret = super.git.override { withLibsecret = true; };
|
|
||||||
|
|
||||||
xonar-fp = pkgs.callPackage ./applications/xonar-fp.nix { };
|
xonar-fp = pkgs.callPackage ./applications/xonar-fp.nix { };
|
||||||
|
|
||||||
|
git-with-libsecret = super.git.override { withLibsecret = true; };
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
|
spotifyd = pkgs.spotifyd.override { withPulseAudio = true; };
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.pkgs = import imports.nixpkgs {
|
nixpkgs.pkgs = import imports.nixpkgs {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
} // config.nixpkgs.config;
|
} // config.nixpkgs.config;
|
||||||
|
@ -26,6 +26,7 @@ in rec {
|
|||||||
};
|
};
|
||||||
windows-samba = mkCredOption "samba on windows" { };
|
windows-samba = mkCredOption "samba on windows" { };
|
||||||
linux-samba = mkCredOption "samba on linux" { };
|
linux-samba = mkCredOption "samba on linux" { };
|
||||||
|
spotify = mkCredOption "Spotify" { };
|
||||||
};
|
};
|
||||||
config = let
|
config = let
|
||||||
secretnix = import ../secret.nix;
|
secretnix = import ../secret.nix;
|
||||||
|
@ -94,7 +94,7 @@ in {
|
|||||||
startup = map (a: { notification = false; } // a) [
|
startup = map (a: { notification = false; } // a) [
|
||||||
{ command = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources"; }
|
{ command = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources"; }
|
||||||
{ command = "${pkgs.pywal}/bin/wal -R"; }
|
{ command = "${pkgs.pywal}/bin/wal -R"; }
|
||||||
{ command = "${pkgs.spotifywm}/bin/spotifywm"; }
|
# { command = "${pkgs.spotifywm}/bin/spotifywm"; }
|
||||||
{
|
{
|
||||||
command =
|
command =
|
||||||
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||||
|
24
modules/workspace/spotifyd.nix
Normal file
24
modules/workspace/spotifyd.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
spotifydConf = pkgs.writeText "spotifyd.conf" ''
|
||||||
|
[global]
|
||||||
|
username = ${config.secrets.spotify.user}
|
||||||
|
password = ${config.secrets.spotify.password}
|
||||||
|
use_keyring = false
|
||||||
|
bitrate = 320
|
||||||
|
volume_normalisation = false
|
||||||
|
backend = pulseaudio
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
#TODO: отвязать от папки пользователя
|
||||||
|
systemd.user.services.spotifyd = {
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
after = [ "network-online.target" "sound.target" ];
|
||||||
|
description = "spotifyd, a Spotify playing daemon";
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --cache-path /home/alukard/.cache/spotifyd --config-path ${spotifydConf}";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 12;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user