split media into programs and services
This commit is contained in:
parent
2c3d86a388
commit
195802600a
5 changed files with 29 additions and 25 deletions
|
@ -19,9 +19,7 @@ in
|
|||
nixvim.homeManagerModules.nixvim
|
||||
hyprland.homeManagerModules.default
|
||||
|
||||
./downloader.nix
|
||||
./gtk.nix
|
||||
./media.nix
|
||||
./misc.nix
|
||||
./persistence.nix
|
||||
./scripts.nix
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
./downloader.nix
|
||||
./firefox.nix
|
||||
./kitty.nix
|
||||
./media.nix
|
||||
./nixvim.nix
|
||||
./tmux.nix
|
||||
./tui.nix
|
||||
|
|
|
@ -22,27 +22,4 @@
|
|||
defaultProfiles = [ "gpu-hq" ];
|
||||
scripts = with pkgs.mpvScripts; [ mpris ];
|
||||
};
|
||||
services = {
|
||||
spotifyd = {
|
||||
enable = true;
|
||||
package = pkgs.spotifyd.override {
|
||||
withKeyring = true;
|
||||
withMpris = true;
|
||||
};
|
||||
settings = {
|
||||
global = {
|
||||
use_keyring = true;
|
||||
use_mpris = true;
|
||||
username_cmd = ''
|
||||
${pkgs.libsecret}/bin/secret-tool search --all service spotifyd 2>&1 | grep 'username' | awk -F'= ' '{print $2}'
|
||||
'';
|
||||
device_name = "Skipperd";
|
||||
device_type = "computer";
|
||||
backend = "pulseaudio";
|
||||
no_audio_cache = true;
|
||||
dbus_type = "session";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,4 +1,7 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./media.nix
|
||||
];
|
||||
services.blueman-applet.enable = true;
|
||||
services.gnome-keyring.enable = true;
|
||||
services.gpg-agent = {
|
||||
|
|
25
home/services/media.nix
Normal file
25
home/services/media.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, ... }: {
|
||||
services = {
|
||||
spotifyd = {
|
||||
enable = true;
|
||||
package = pkgs.spotifyd.override {
|
||||
withKeyring = true;
|
||||
withMpris = true;
|
||||
};
|
||||
settings = {
|
||||
global = {
|
||||
use_keyring = true;
|
||||
use_mpris = true;
|
||||
username_cmd = ''
|
||||
${pkgs.libsecret}/bin/secret-tool search --all service spotifyd 2>&1 | grep 'username' | awk -F'= ' '{print $2}'
|
||||
'';
|
||||
device_name = "Skipperd";
|
||||
device_type = "computer";
|
||||
backend = "pulseaudio";
|
||||
no_audio_cache = true;
|
||||
dbus_type = "session";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue