refactor services

This commit is contained in:
Adithya 2023-04-07 14:02:15 +05:30
parent fcb3a3b569
commit ded7ef42ff
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 29 additions and 36 deletions

View file

@ -1,14 +1,9 @@
{ ... }: {
services = {
imports = [
./media.nix
./spotifyd.nix
];
services.blueman-applet.enable = true;
services.gnome-keyring.enable = true;
services.gpg-agent = {
enable = true;
enableExtraSocket = true;
enableScDaemon = true;
enableSshSupport = true;
pinentryFlavor = "gnome3";
blueman-applet.enable = true;
gnome-keyring.enable = true;
};
}

View file

@ -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";
};
};
};
};
}

View 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";
};
};
};
}