feat(spotifyd): add spotifyd

This commit is contained in:
Mohammad Rafiq 2025-04-04 23:31:59 +08:00
parent 0bc109c6a9
commit 873611b155
No known key found for this signature in database
4 changed files with 21 additions and 2 deletions

View file

@ -1,7 +1,6 @@
{
pkgs,
modulesPath,
lib,
...
}:
{
@ -24,4 +23,7 @@
"rtsx_pci_sdmmc"
];
};
services.dbus = {
enable = true;
};
}

View file

@ -12,6 +12,7 @@ with pkgs;
./programs/hyprshade.nix
./programs/kitty.nix
./programs/spicetify.nix
./programs/spotifyd.nix
./programs/stylix.nix
./hardware/audio.nix
./hardware/bluetooth.nix

View file

@ -45,8 +45,11 @@
enable = true;
allowedTCPPorts = [
22 # SSH
5353 # spotifyd
];
allowedUDPPorts = [
5353 # spotifyd
];
allowedUDPPorts = [ ];
};
interfaces.enp12s0.wakeOnLan.policy = [

View file

@ -0,0 +1,13 @@
{ hostname, ... }:
{
home-manager.users.rafiq.services.spotifyd = {
enable = true;
settings = {
global = {
device_name = "${hostname}";
device_type = "computer";
zeroconf_port = 5353;
};
};
};
}