feat(homeModules/desktop): add spotifyd

This commit is contained in:
Mohammad Rafiq 2025-05-23 22:19:47 +08:00
parent 56064adfff
commit 3a5d53def7
No known key found for this signature in database
4 changed files with 14 additions and 0 deletions

View file

@ -13,5 +13,13 @@
".local/share/stable-diffusion-webui"
];
})
(lib.mkIf osConfig.desktop.enableSpotifyd {
services.spotifyd.enable = true;
services.spotifyd.settings.global = {
device_name = "${osConfig.system.hostname}";
device_type = "computer";
zeroconf_port = 5353;
};
})
];
}

View file

@ -16,5 +16,6 @@
browser = lib.pantheon.mkStrOption;
terminal = lib.pantheon.mkStrOption;
notification-daemon = lib.pantheon.mkStrOption;
enableSpotifyd = lib.mkEnableOption "";
};
}

View file

@ -19,5 +19,9 @@
};
environment.persistence."/persist".files = [ "/var/lib/tailscale/tailscaled.state" ];
}
(lib.mkIf config.desktop.enableSpotifyd {
networking.firewall.allowedTCPPorts = [ 5353 ];
networking.firewall.allowedUDPPorts = [ 5353 ];
})
];
}

View file

@ -26,6 +26,7 @@
resolution = "3840x2160";
refresh-rate = "60";
};
desktop.enableSpotifyd = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}