fix: spicetify-nix is now a module yey (please get me out of here) (please)

This commit is contained in:
EinEtwas 2024-10-21 13:24:44 +02:00
parent f66412ab04
commit 129b96c707
3 changed files with 31 additions and 20 deletions

View file

@ -16,9 +16,12 @@
};
};
outputs = { self, nixpkgs, nixos-hardware, agenix, ... } @ inputs: {
outputs = { self, nixpkgs, nixos-hardware, agenix, spicetify-nix, ... } @ inputs: {
nixosConfigurations.rhea-laptop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
specialArgs = {
inherit inputs;
inherit spicetify-nix;
};
system = "x86_64-linux";

View file

@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, inputs, spicetify-nix, ... }:
{
imports = [
inputs.home-manager.nixosModules.home-manager
@ -9,6 +9,11 @@
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {
inherit spicetify-nix;
};
users.rhea = {
/* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "24.05";
@ -37,25 +42,10 @@
./packages.nix
./alacritty.nix
./zsh.nix
./spicetify.nix
./keyring.nix
];
# TODO: modularize this, it didn't work in the first place..
programs.spicetify =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
in
{
enable = true;
enabledExtensions = with spicePkgs.extensions; [
shuffle
trashbin
featureShuffle
history
oneko
];
theme = spicePkgs.themes.text;
};
home.pointerCursor = {
gtk.enable = true;
package = pkgs.posy-cursors;

18
home/spicetify.nix Normal file
View file

@ -0,0 +1,18 @@
{ inputs, pkgs, config, spicetify-nix, ... }:
{
programs.spicetify =
let
spicePkgs = spicetify-nix.legacyPackages.${pkgs.system};
in
{
enable = true;
enabledExtensions = with spicePkgs.extensions; [
shuffle
trashbin
featureShuffle
history
oneko
];
theme = spicePkgs.themes.text;
};
}