diff --git a/modules/boot.nix b/modules/boot.nix index c0d2f8b..e869ba0 100644 --- a/modules/boot.nix +++ b/modules/boot.nix @@ -1,7 +1,6 @@ { pkgs, modulesPath, - lib, ... }: { @@ -24,4 +23,7 @@ "rtsx_pci_sdmmc" ]; }; + services.dbus = { + enable = true; + }; } diff --git a/modules/graphical.nix b/modules/graphical.nix index d4ff399..ecb44b7 100644 --- a/modules/graphical.nix +++ b/modules/graphical.nix @@ -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 diff --git a/modules/networking.nix b/modules/networking.nix index 8a3776d..2d21f1b 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -45,8 +45,11 @@ enable = true; allowedTCPPorts = [ 22 # SSH + 5353 # spotifyd + ]; + allowedUDPPorts = [ + 5353 # spotifyd ]; - allowedUDPPorts = [ ]; }; interfaces.enp12s0.wakeOnLan.policy = [ diff --git a/modules/programs/spotifyd.nix b/modules/programs/spotifyd.nix new file mode 100644 index 0000000..ac96fc6 --- /dev/null +++ b/modules/programs/spotifyd.nix @@ -0,0 +1,13 @@ +{ hostname, ... }: +{ + home-manager.users.rafiq.services.spotifyd = { + enable = true; + settings = { + global = { + device_name = "${hostname}"; + device_type = "computer"; + zeroconf_port = 5353; + }; + }; + }; +}