feat(homes/rafiq): enable spotifyd and pass hostName to home
This commit is contained in:
parent
4507f4b113
commit
3db3dc176c
2 changed files with 20 additions and 3 deletions
|
@ -12,9 +12,17 @@
|
|||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
# spotifyd
|
||||
networking.firewall.allowedTCPPorts = [ 5353 ];
|
||||
networking.firewall.allowedUDPPorts = [ 5353 ];
|
||||
};
|
||||
flake.modules.homeManager.rafiq =
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
hostName,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.modules) mkMerge mkIf;
|
||||
inherit (builtins) map listToAttrs;
|
||||
|
@ -179,8 +187,16 @@
|
|||
|
||||
};
|
||||
services = {
|
||||
spotifyd.enable = true;
|
||||
spotifyd.settings.global = {
|
||||
device_name = "${hostName}";
|
||||
device_type = "computer";
|
||||
zeroconf_port = 5353;
|
||||
};
|
||||
|
||||
mako.enable = true;
|
||||
mako.settings.default-timeout = 10000;
|
||||
|
||||
};
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue