refactor services
This commit is contained in:
parent
fcb3a3b569
commit
ded7ef42ff
3 changed files with 29 additions and 36 deletions
|
@ -1,14 +1,9 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./media.nix
|
||||
];
|
||||
services.blueman-applet.enable = true;
|
||||
services.gnome-keyring.enable = true;
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableExtraSocket = true;
|
||||
enableScDaemon = true;
|
||||
enableSshSupport = true;
|
||||
pinentryFlavor = "gnome3";
|
||||
services = {
|
||||
imports = [
|
||||
./spotifyd.nix
|
||||
];
|
||||
blueman-applet.enable = true;
|
||||
gnome-keyring.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
23
home/services/spotifyd.nix
Normal file
23
home/services/spotifyd.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, ... }: {
|
||||
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