split media into programs and services

This commit is contained in:
Adithya 2023-04-04 10:06:31 +05:30
parent 2c3d86a388
commit 195802600a
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
5 changed files with 29 additions and 25 deletions

View file

@ -19,9 +19,7 @@ in
nixvim.homeManagerModules.nixvim
hyprland.homeManagerModules.default
./downloader.nix
./gtk.nix
./media.nix
./misc.nix
./persistence.nix
./scripts.nix

View file

@ -4,6 +4,7 @@
./downloader.nix
./firefox.nix
./kitty.nix
./media.nix
./nixvim.nix
./tmux.nix
./tui.nix

View file

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

View file

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