feat: spicetify

This commit is contained in:
Patrick Großmann 2023-10-13 16:55:01 +02:00
parent 912b4043a7
commit 23fe1c2efa
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
6 changed files with 99 additions and 3 deletions

View file

@ -405,6 +405,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_5": {
"inputs": {
"systems": "systems_5"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flakeCompat": { "flakeCompat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -830,6 +848,22 @@
} }
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": {
"lastModified": 1686020360,
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4729ffac6fd12e26e5a8de002781ffc49b0e94b7",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1691853136, "lastModified": 1691853136,
"narHash": "sha256-wTzDsRV4HN8A2Sl0SVQY0q8ILs90CD43Ha//7gNZE+E=", "narHash": "sha256-wTzDsRV4HN8A2Sl0SVQY0q8ILs90CD43Ha//7gNZE+E=",
@ -966,8 +1000,9 @@
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"nixseparatedebuginfod": "nixseparatedebuginfod", "nixseparatedebuginfod": "nixseparatedebuginfod",
"pre-commit-hooks": "pre-commit-hooks_2", "pre-commit-hooks": "pre-commit-hooks_2",
"spicetify-nix": "spicetify-nix",
"stylix": "stylix", "stylix": "stylix",
"systems": "systems_5", "systems": "systems_6",
"templates": "templates", "templates": "templates",
"wired-notify": "wired-notify" "wired-notify": "wired-notify"
} }
@ -997,12 +1032,31 @@
"type": "github" "type": "github"
} }
}, },
"spicetify-nix": {
"inputs": {
"flake-utils": "flake-utils_5",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1693075322,
"narHash": "sha256-O/qmWiE23pzYMSKNhA74jfY1D5TyiJrHx35PYkRx9Gs=",
"owner": "the-argus",
"repo": "spicetify-nix",
"rev": "78495ade242ad155942c2e33e3930e4a05963f13",
"type": "github"
},
"original": {
"owner": "the-argus",
"repo": "spicetify-nix",
"type": "github"
}
},
"stylix": { "stylix": {
"inputs": { "inputs": {
"base16": "base16", "base16": "base16",
"flake-compat": "flake-compat_5", "flake-compat": "flake-compat_5",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1694375893, "lastModified": 1694375893,
@ -1093,6 +1147,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_6": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"templates": { "templates": {
"locked": { "locked": {
"lastModified": 1696855554, "lastModified": 1696855554,

View file

@ -76,11 +76,14 @@
}; };
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
wired-notify = { wired-notify = {
url = "github:Toqozz/wired-notify"; url = "github:Toqozz/wired-notify";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "flake-utils"; inputs.utils.follows = "flake-utils";
}; };
spicetify-nix.url = "github:the-argus/spicetify-nix";
}; };
outputs = { outputs = {

View file

@ -1,18 +1,23 @@
{ {
stateVersion, stateVersion,
inputs, inputs,
pkgs,
... ...
}: { }: {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
verbose = true; verbose = true;
extraSpecialArgs = {
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
};
sharedModules = [ sharedModules = [
{ {
home.stateVersion = stateVersion; home.stateVersion = stateVersion;
} }
inputs.nix-index-database.hmModules.nix-index inputs.nix-index-database.hmModules.nix-index
inputs.wired-notify.homeManagerModules.default inputs.wired-notify.homeManagerModules.default
inputs.spicetify-nix.homeManagerModule
]; ];
}; };
# HM zsh needs this or else the startup order is fucked # HM zsh needs this or else the startup order is fucked

View file

@ -0,0 +1,19 @@
{spicePkgs, ...}: {
programs.spicetify = {
enable = true;
theme = spicePkgs.themes.RetroBlur;
colorScheme = "Purple";
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay
shuffle # shuffle+ (special characters are sanitized out of ext names)
hidePodcasts
popupLyrics
fullAlbumDate
skipStats
showQueueDuration
history
volumePercentage
];
};
}

View file

@ -58,6 +58,7 @@ lib.optionalAttrs (!minimal) {
../common/programs/firefox.nix ../common/programs/firefox.nix
../common/programs/kitty.nix ../common/programs/kitty.nix
../common/programs/thunderbird.nix ../common/programs/thunderbird.nix
../common/programs/spicetify.nix
] ]
++ { ++ {
"desktopnix" = [ "desktopnix" = [

View file

@ -11,7 +11,6 @@
signal-desktop signal-desktop
telegram-desktop telegram-desktop
chromium chromium
spotify
]; ];
}; };
} }