Added Spotify and Spicetify

This commit is contained in:
Alexandre 2025-12-13 11:38:52 +01:00
parent e98d5ebc47
commit 300aa2c874
3 changed files with 45 additions and 0 deletions

View File

@ -8,6 +8,9 @@
# Hyprland # Hyprland
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
# Spicetify
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
nix-darwin = { nix-darwin = {
url = "github:nix-darwin/nix-darwin/master"; url = "github:nix-darwin/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View File

@ -6,6 +6,12 @@
home.username = "alex"; home.username = "alex";
home.homeDirectory = "/home/alex"; home.homeDirectory = "/home/alex";
import = [
# Different imports
# Spotify
../../common/spotify.nix
];
# Hyprland # Hyprland
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;

View File

@ -0,0 +1,36 @@
{ pkgs, inputs, ... }:
{
# Installs Spotify and Spicetify (import this module in homeManager)
environment.systemPackages = with pkgs; [
spotify
];
# Local discovery
networking.firewall.allowedTCPPorts = [ 57621 ];
# Spotify Connect
networking.firewall.allowedUDPPorts = [ 5353 ];
# Spicetify
programs.spicetify =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
enable = true;
enabledCustomApps = with spicePkgs.apps; [
newReleases
ncsVisualiser
];
enabledSnippets = with spicePkgs.snippets; [
rotatingCoverart
pointer
];
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
}
}