fix: spicetify-nix is now a module yey (please get me out of here) (please)
This commit is contained in:
parent
f66412ab04
commit
129b96c707
3 changed files with 31 additions and 20 deletions
|
|
@ -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 {
|
nixosConfigurations.rhea-laptop = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
inherit spicetify-nix;
|
||||||
|
};
|
||||||
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, spicetify-nix, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
@ -9,6 +9,11 @@
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit spicetify-nix;
|
||||||
|
};
|
||||||
|
|
||||||
users.rhea = {
|
users.rhea = {
|
||||||
/* The home.stateVersion option does not have a default and must be set */
|
/* The home.stateVersion option does not have a default and must be set */
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
@ -37,25 +42,10 @@
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./zsh.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 = {
|
home.pointerCursor = {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
package = pkgs.posy-cursors;
|
package = pkgs.posy-cursors;
|
||||||
|
|
|
||||||
18
home/spicetify.nix
Normal file
18
home/spicetify.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue