feat(spotifyd): add spotifyd
This commit is contained in:
parent
0bc109c6a9
commit
873611b155
4 changed files with 21 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
pkgs,
|
||||
modulesPath,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -24,4 +23,7 @@
|
|||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
};
|
||||
services.dbus = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -45,8 +45,11 @@
|
|||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
22 # SSH
|
||||
5353 # spotifyd
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
5353 # spotifyd
|
||||
];
|
||||
allowedUDPPorts = [ ];
|
||||
};
|
||||
|
||||
interfaces.enp12s0.wakeOnLan.policy = [
|
||||
|
|
13
modules/programs/spotifyd.nix
Normal file
13
modules/programs/spotifyd.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue