Skip to content

Commit

Permalink
Add somewhat broken Spotify config
Browse files Browse the repository at this point in the history
  • Loading branch information
nonetrix committed Apr 21, 2024
1 parent abb31cb commit 95e722e
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 19 deletions.
1 change: 1 addition & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ in {
./graphical/wpaperd.nix
./graphical/satty.nix
./graphical/firefox.nix
./graphical/spotify.nix
./amd-gpu.nix
./misc/udev.nix
./misc/ntp.nix
Expand Down
71 changes: 70 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,25 @@

# Extra packages not in Nixpkgs
nur.url = "github:nix-community/NUR";

# Spotify customization
spicetify-nix.url = "github:A1ca7raz/spicetify-nix";
};

outputs = {
nixpkgs,
home-manager,
nur,
spicetify-nix,
...
} @ inputs: let
system = "x86_64-linux";
in {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
specialArgs = {
inherit inputs;
};
system = "x86_64-linux";
modules = [
./configuration.nix
Expand All @@ -45,7 +51,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [nur.hmModules.nur];
sharedModules = [nur.hmModules.nur spicetify-nix.homeManagerModule];
};
}
];
Expand Down
26 changes: 13 additions & 13 deletions graphical/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ in {
firefox-color
];

bookmarks = [
{
toolbar = true;
name = "toolbar";
bookmarks = [
{
name = "Linux";
bookmarks = [
{
name = "Phoronix";
url = "https://www.phoronix.com/";
toolbar = true;
name = "toolbar";
bookmarks = [
{
name = "Linux";
bookmarks = [
{
name = "Phoronix";
url = "https://www.phoronix.com/";
}
];
}
];
}
];
}
];
}
];

settings = {
"browser.uiCustomization.state" = builtins.readFile ./firefox-uistate.json;
Expand Down
24 changes: 24 additions & 0 deletions graphical/spotify.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
pkgs,
lib,
inputs,
...
}: let
global = import ../global-var.nix;
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
in {
environment.systemPackages = with pkgs; [
spotify
];

home-manager.users.${global.username} = {...}: {
programs.spicetify = {
enable = true;
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";

enabledExtensions = with spicePkgs.extensions; [
];
};
};
}
2 changes: 0 additions & 2 deletions graphical/unconfigured.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
obs-studio
# A art/image editing program
krita
# A music client
spotify
# A video editor
kdenlive
# A 3D modeling software with ROCm (Radeon Open Compute platform) support
Expand Down
1 change: 0 additions & 1 deletion terminal/unconfigured.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{pkgs, ...}: {

environment.systemPackages = with pkgs; [
# Zips files
zip
Expand Down

0 comments on commit 95e722e

Please sign in to comment.