change easyeffect and spotifyd services
This commit is contained in:
parent
13f0cde748
commit
e0fb0cdab0
@ -38,15 +38,14 @@ in {
|
|||||||
|
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
(mkIf cfg.enable {
|
(mkIf cfg.enable {
|
||||||
home-manager.users.alukard.home.packages = [ cfg.package ];
|
|
||||||
|
|
||||||
systemd.user.services.spotifyd = {
|
systemd.user.services.spotifyd = {
|
||||||
description = "spotify daemon";
|
|
||||||
# wantedBy = [ "multi-user.target" ];
|
|
||||||
after = [ "network-online.target" "pipewire-pulse.service" "easyeffects.service" ];
|
|
||||||
wants = [ "network-online.target" ];
|
|
||||||
# partOf = [ "pipewire-pulse.service" ];
|
|
||||||
path = [ pkgs.zsh pkgs.pass-nodmenu ];
|
path = [ pkgs.zsh pkgs.pass-nodmenu ];
|
||||||
|
unitConfig = {
|
||||||
|
Description = "Spotify daemon";
|
||||||
|
Requires = [ "pipewire-pulse.service" ];
|
||||||
|
After = [ "easyeffects.service" ];
|
||||||
|
};
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${cfg.package}/bin/spotifyd --no-daemon --config-path ${configFile}";
|
"${cfg.package}/bin/spotifyd --no-daemon --config-path ${configFile}";
|
||||||
@ -63,7 +62,7 @@ in {
|
|||||||
|
|
||||||
services.spotifyd-user = {
|
services.spotifyd-user = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = (pkgs.spotifyd.override { withALSA = false; withPulseAudio = true; withPortAudio = false; });
|
package = (pkgs.spotifyd.override { withALSA = false; withPulseAudio = true; withPortAudio = false; withMpris = true; });
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
username = "alukard.files@gmail.com";
|
username = "alukard.files@gmail.com";
|
||||||
|
@ -4,21 +4,20 @@
|
|||||||
home-manager.users.alukard.xdg.configFile."easyeffects/output/Bluetooth.json".text =
|
home-manager.users.alukard.xdg.configFile."easyeffects/output/Bluetooth.json".text =
|
||||||
(builtins.readFile ./Bluetooth.json);
|
(builtins.readFile ./Bluetooth.json);
|
||||||
|
|
||||||
# let
|
home-manager.users.alukard.services.easyeffects.enable = true;
|
||||||
# confs = builtins.attrNames (builtins.readDir ./autoload);
|
|
||||||
# in
|
|
||||||
# home-manager.users.alukard.xdg.configFile."easyeffects/autoload/output/alsa_output.pci-0000_00_1f.3.analog-stereo:output:analog-stereo+input:analog-stereo.json".text =
|
|
||||||
# (builtins.readFile ./autoload/alsa_output.pci-0000_00_1f.3.analog-stereo:output:analog-stereo+input:analog-stereo.json);
|
|
||||||
# home-manager.users.alukard.xdg.configFile."easyeffects/autoload/output/HE4XX.json".text =
|
|
||||||
# (builtins.readFile ./HE4XX.json);
|
|
||||||
|
|
||||||
systemd.user.services."easyeffects" = {
|
# home-manager.users.alukard.home.packages = [ pkgs.easyeffects ];
|
||||||
after = [ "sound.target" "pipewire.service" ];
|
|
||||||
description = "EasyEffects daemon";
|
# systemd.user.services."easyeffects" = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
# after = [ "sound.target" "pipewire.service" ];
|
||||||
path = [ pkgs.easyeffects ];
|
# description = "EasyEffects daemon";
|
||||||
serviceConfig.ExecStart = "${pkgs.easyeffects}/bin/easyeffects --gapplication-service";
|
# wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig.ExecStop = "${pkgs.easyeffects}/bin/easyeffects --quit";
|
# path = [ pkgs.easyeffects ];
|
||||||
serviceConfig.Restart = "on-failure";
|
# serviceConfig = {
|
||||||
};
|
# Type = "oneshot";
|
||||||
|
# ExecStart = "${pkgs.easyeffects}/bin/easyeffects --gapplication-service";
|
||||||
|
# ExecStop = "${pkgs.easyeffects}/bin/easyeffects --quit";
|
||||||
|
# Restart = "on-failure";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user