From 4913d01060bb8ce21855b3d14c353b9c4f593d17 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 10 Jan 2023 14:28:18 +0100 Subject: [PATCH] Spotifyd --- hm_modules/spotifyd.nix | 10 ++++++++++ odin/hm.nix | 17 +++-------------- thor/hm.nix | 1 + 3 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 hm_modules/spotifyd.nix diff --git a/hm_modules/spotifyd.nix b/hm_modules/spotifyd.nix new file mode 100644 index 0000000..1fa258b --- /dev/null +++ b/hm_modules/spotifyd.nix @@ -0,0 +1,10 @@ +{ nixosConfig, ... }: { + services.spotifyd = { + enable = true; + settings.global = { + username = "filippoberto95"; + password_cmd = "cat ${nixosConfig.age.secrets.spotify_password.path}"; + backend = "pulseaudio"; + }; + }; +} diff --git a/odin/hm.nix b/odin/hm.nix index cc94090..44a0fa5 100644 --- a/odin/hm.nix +++ b/odin/hm.nix @@ -1,4 +1,4 @@ -{ pkgs, nixosConfig, ... }: { +{ pkgs, ... }: { home = { language.base = "it_IT.UTF-8"; keyboard = { @@ -71,19 +71,7 @@ ]; }; - services = { - gnome-keyring.enable = true; - spotifyd = { - enable = true; - settings = { - global = { - username = "filippoberto95"; - password_cmd = "cat ${nixosConfig.age.secrets.spotify_password.path}"; - use_keyring = true; - }; - }; - }; - }; + services = { gnome-keyring.enable = true; }; xsession = { enable = true; @@ -150,6 +138,7 @@ ../hm_modules/rofi.nix # ../hm_modules/screen_locker.nix # ../hm_modules/security.nix + ../hm_modules/spotifyd.nix ../hm_modules/sxhkd.nix ../hm_modules/syncthing.nix ../hm_modules/terminator.nix diff --git a/thor/hm.nix b/thor/hm.nix index 7f5830f..9b39acc 100644 --- a/thor/hm.nix +++ b/thor/hm.nix @@ -126,6 +126,7 @@ ../hm_modules/polybar.nix ../hm_modules/pro_audio.nix # ../hm_modules/pycharm.nix + ../hm_modules/spotifyd.nix ../hm_modules/research.nix ../hm_modules/rofi.nix # ../hm_modules/screen_locker.nix