feat(homeModules/desktop): add spotifyd
This commit is contained in:
parent
56064adfff
commit
3a5d53def7
4 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -16,5 +16,6 @@
|
|||
browser = lib.pantheon.mkStrOption;
|
||||
terminal = lib.pantheon.mkStrOption;
|
||||
notification-daemon = lib.pantheon.mkStrOption;
|
||||
enableSpotifyd = lib.mkEnableOption "";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 ];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
resolution = "3840x2160";
|
||||
refresh-rate = "60";
|
||||
};
|
||||
desktop.enableSpotifyd = true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue