1
Fork 0

Spotify & discord theming & more wallpapers

This commit is contained in:
Matei Adriel 2023-06-18 18:10:20 +02:00
parent 70bbc27dbb
commit 9b49316ad7
No known key found for this signature in database
22 changed files with 191 additions and 23 deletions

View file

@ -1,7 +1,20 @@
{ inputs, ... }:
let
themes = {
catppuccin-mocha = {
image = ./wallpapers/auto/catppuccin-mocha-rain-world.png;
base16Scheme = "${inputs.catppuccin-base16}/base16/mocha.yaml";
};
rosepine-dawn = {
image = ./wallpapers/rosepine_light_field.png;
base16Scheme = "${inputs.rosepine-base16}/rose-pine-dawn.yaml";
};
};
in
{ {
# Select your current theme here! # Select your current theme here!
imports = [ imports = [
./rose-pine-dawn.nix { stylix = themes.catppuccin-mocha; }
]; ];
# Requires me to manually turn targets on! # Requires me to manually turn targets on!

View file

@ -1,6 +0,0 @@
{ inputs, ... }: {
stylix = {
image = ./wallpapers/rosepine_light_field.png;
base16Scheme = "${inputs.rosepine-base16}/rose-pine-dawn.yaml";
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

View file

@ -303,6 +303,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_4": {
"inputs": {
"systems": "systems_3"
},
"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"
}
},
"grub2-themes": { "grub2-themes": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -815,6 +833,7 @@
"nur": "nur", "nur": "nur",
"rosepine-base16": "rosepine-base16", "rosepine-base16": "rosepine-base16",
"slambda": "slambda", "slambda": "slambda",
"spicetify-nix": "spicetify-nix",
"stylix": "stylix" "stylix": "stylix"
} }
}, },
@ -854,6 +873,27 @@
"type": "github" "type": "github"
} }
}, },
"spicetify-nix": {
"inputs": {
"flake-utils": "flake-utils_4",
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1686173678,
"narHash": "sha256-aYzl34xb3u9I57sqkvSldQKltCnxhjvvLABjgFRxOVE=",
"owner": "the-argus",
"repo": "spicetify-nix",
"rev": "f024752b691ac2dcb2ad378d72a2e3084ce83b79",
"type": "github"
},
"original": {
"owner": "the-argus",
"repo": "spicetify-nix",
"type": "github"
}
},
"stylix": { "stylix": {
"inputs": { "inputs": {
"base16": "base16", "base16": "base16",
@ -909,6 +949,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"wlroots": { "wlroots": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -72,6 +72,10 @@
# [the docs](https://github.com/nix-community/nixd/blob/main/docs/user-guide.md#installation) # [the docs](https://github.com/nix-community/nixd/blob/main/docs/user-guide.md#installation)
# tell me not to override the nixpkgs input. # tell me not to override the nixpkgs input.
nixd.url = "github:nix-community/nixd"; nixd.url = "github:nix-community/nixd";
# Spotify client
spicetify-nix.url = "github:the-argus/spicetify-nix";
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs-unstable";
}; };
# }}} # }}}

View file

@ -1,4 +1,8 @@
{ config, ... }: { { config, pkgs, ... }:
let
themeMap = pkgs.callPackage (import ./themes.nix) { };
in
{
programs.discord = { programs.discord = {
enable = true; enable = true;
enableOpenASAR = false; enableOpenASAR = false;
@ -6,6 +10,11 @@
enableDevtools = true; enableDevtools = true;
}; };
home.packages = [ pkgs.discocss ];
xdg.configFile."discocss/custom.css".source =
themeMap.${config.lib.stylix.scheme.scheme} or themeMap.default;
satellite.persistence.at.state.apps.Discord.directories = [ satellite.persistence.at.state.apps.Discord.directories = [
"${config.xdg.configHome}/discord" # Why tf does discord store it's state here 💀 "${config.xdg.configHome}/discord" # Why tf does discord store it's state here 💀
]; ];

View file

@ -0,0 +1,20 @@
{ lib, fetchurl, ... }:
lib.fix (self: {
"Catppuccin Mocha" = fetchurl {
url = "https://catppuccin.github.io/discord/dist/catppuccin-mocha.theme.css";
sha256 = "0nv36q310mbm0p5v8anvz98bq68p9m3969rlp464m3mqkj8aszg2";
};
"Catppuccin Frappe" = fetchurl {
url = "https://catppuccin.github.io/discord/dist/catppuccin-frappe.theme.css";
sha256 = "1d55rxp5z0c4m0g6qn6y28mrps7psfgvag1yf0h2ac3znmmyjrqk";
};
"Catppuccin Latte" = fetchurl {
url = "https://catppuccin.github.io/discord/dist/catppuccin-latte.theme.css";
sha256 = "1m0vjq3bj62rm9n5cabpqhghxyaj1676q9k83z7dabsqq3d4blpv";
};
"Catppuccin Macchiato" = fetchurl {
url = "https://catppuccin.github.io/discord/dist/catppuccin-macchiato.theme.css";
sha256 = "1wnphnzgv90r5zgxrr5w36pm1wa5qmkyb72gylj4j1wrk3h7vfvc";
};
default = self."Catppuccin Macchiato";
})

View file

@ -95,7 +95,6 @@ in
type = "options"; type = "options";
}; };
# Purescript packages
"Pursuit" = mkBasicSearchEngine { "Pursuit" = mkBasicSearchEngine {
url = "https://pursuit.purescript.org/search"; url = "https://pursuit.purescript.org/search";
param = "q"; param = "q";
@ -132,6 +131,12 @@ in
aliases = [ "@rw" "@rain-world" ]; aliases = [ "@rw" "@rain-world" ];
}; };
"Arch wiki" = mkBasicSearchEngine {
url = "https://wiki.archlinux.org/index.php";
param = "search";
aliases = [ "@aw" "@arch-wiki" ];
};
"Factorio wiki" = mkBasicSearchEngine { "Factorio wiki" = mkBasicSearchEngine {
url = "https://wiki.factorio.com/index.php"; url = "https://wiki.factorio.com/index.php";
param = "search"; param = "search";

View file

@ -0,0 +1,3 @@
{
services.keepassx.enable = true;
}

View file

@ -0,0 +1,38 @@
{ inputs, pkgs, config, ... }:
let
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
themeMap = {
"Catppuccin Mocha" = spicePkgs.themes.catppuccin-mocha;
"Catppuccin Latte" = spicePkgs.themes.catppuccin-latte;
"Catppuccin Frappe" = spicePkgs.themes.catppuccin-frappe;
"Catppuccin Macchiato" = spicePkgs.themes.catppuccin-macchiato;
# TODO: add rosepine themes here
default = spicePkgs.themes.catppuccin-mocha;
};
in
{
programs.spicetify = {
enable = true;
theme = themeMap.${config.lib.stylix.scheme.scheme} or themeMap.default;
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplayMod
shuffle # Working shuffle
keyboardShortcut
skipStats # Track my skips
listPlaylistsWithSong # Adds button to show playlists which contain a song
playlistIntersection # Shows stuff that's in two different playlists
fullAlbumDate
bookmark
trashbin
groupSession
wikify # Shows an artist's wikipedia entry
songStats
showQueueDuration
genre
adblock
savePlaylists # Adds a button to duplicate playlists
];
};
# TODO: persistence
}

View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }: {
services.spotifyd = {
enable = true;
settings = {
global = {
username = "mjmsimuzc910khmr6yoccgtyr";
device_name = "nix"; # TODO: perhaps include the hostname here?
password_cmd =
# TODO: move this in it's own module
let identities = builtins.concatStringsSep " " (map (path: "-i ${path}") config.homeage.identityPaths);
in "${lib.getExe pkgs.age} --decrypt ${identities} ${./password.age}";
};
};
};
}

View file

@ -0,0 +1,8 @@
age-encryption.org/v1
-> ssh-ed25519 UUF9JQ FSx8O2svnwtbQ14eDPxFaBpnnUwx8rZbbzPKbg6yP2c
iZSfXaCF4b3vdpceO6cjdD4e+s+a0wowJJFNflO/JJQ
-> _nE-grease ,,1|@
RtO87gZKvnqPCFUe5XcXgXuIOmMFMrJU7YU
--- dA0HKjUgZYdBU/DF+t6K7oeVu725up4Ve7ya7alP7yk
D»$9?|ÈüÐG0>ÍŠ|ã4Z5>e¡ùü€<C3BC>$ Éâì
#×kDg˜äq

View file

@ -33,7 +33,7 @@ gestures {
} }
# Execute apps at launch # Execute apps at launch
exec-once = wezterm & firefox & discord exec-once = wezterm & firefox & discocss
# {{{ Window rules # {{{ Window rules
# {{{ Automatically move stuff to workspaces # {{{ Automatically move stuff to workspaces

View file

@ -1,4 +1,4 @@
{ inputs, lib, pkgs, config, outputs, ... }: { inputs, lib, config, outputs, ... }:
let let
# {{{ Imports # {{{ Imports
imports = [ imports = [
@ -7,6 +7,7 @@ let
inputs.nur.nixosModules.nur inputs.nur.nixosModules.nur
inputs.impermanence.nixosModules.home-manager.impermanence inputs.impermanence.nixosModules.home-manager.impermanence
inputs.hyprland.homeManagerModules.default inputs.hyprland.homeManagerModules.default
inputs.spicetify-nix.homeManagerModules.spicetify
../features/cli ../features/cli
../features/neovim ../features/neovim

View file

@ -2,9 +2,10 @@
imports = [ imports = [
./global ./global
./features/desktop/discord.nix
./features/desktop/zathura.nix ./features/desktop/zathura.nix
./features/desktop/spotify.nix
./features/desktop/firefox ./features/desktop/firefox
./features/desktop/discord
./features/xorg/xmonad.nix ./features/xorg/xmonad.nix
./features/wayland/hyprland ./features/wayland/hyprland

View file

@ -11,17 +11,17 @@
# }); # });
# {{{ Wezterm # {{{ Wezterm
# REASON: https://github.com/wez/wezterm/issues/3529 doesn't seem to be fixed on stable # # REASON: https://github.com/wez/wezterm/issues/3529 doesn't seem to be fixed on stable
wezterm = prev.wezterm.overrideAttrs (_: { # wezterm = prev.wezterm.overrideAttrs (_: {
version = "unstable-2023-06-12"; # version = "unstable-2023-06-12";
src = prev.fetchFromGitHub { # src = prev.fetchFromGitHub {
owner = "wez"; # owner = "wez";
repo = "wezterm"; # repo = "wezterm";
rev = "baf9d970816e015bee41ed5eb9186ef7f71c454c"; # rev = "baf9d970816e015bee41ed5eb9186ef7f71c454c";
hash = "sha256-0pqfpn12963hfwdhgdwx9fwjngv6j2i6w9d20hcp1saxfd7q5l7m"; # sha256 = "0pqfpn12963hfwdhgdwx9fwjngv6j2i6w9d20hcp1saxfd7q5l7m";
fetchSubmodules = true; # fetchSubmodules = true;
}; # };
}); # });
# }}} # }}}
}; };

View file

@ -9,4 +9,5 @@ in
# Scoped for the user # Scoped for the user
"./home/features/desktop/wakatime/wakatime_config.age".publicKeys = [ adrielus ]; "./home/features/desktop/wakatime/wakatime_config.age".publicKeys = [ adrielus ];
"./home/features/desktop/spotifyd/password.age".publicKeys = [ adrielus ];
} }