Auto-commit: 2026-01-05 06:50:23

This commit is contained in:
2026-01-05 06:50:23 +00:00
parent c204ac3c06
commit 82627ba5fa
6 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
pkgs,
...
}:
let
variant = "mocha";
accent = "mauve";
in
{
catppuccin = {
enable = true;
accent = "${accent}";
flavor = "${variant}";
vscode.profiles.default.enable = false;
cursors.enable = true;
};
gtk = {
enable = true;
theme = {
name = "Catppuccin-GTK-Dark";
package = pkgs.magnetic-catppuccin-gtk;
};
};
qt = {
enable = true;
platformTheme.name = "ct";
style.name = "kvantum";
};
}

20
home/desktop/default.nix Normal file
View File

@@ -0,0 +1,20 @@
{ lib, ... }:
let
b = builtins;
module_files =
b.readDir ./. |>
lib.filterAttrs (name: type:
( (lib.strings.hasSuffix ".nix" name
&& name != "default.nix"
&& type == "regular" )
|| ( type == "directory"
&& b.pathExists ./${name}/default.nix))
) |>
b.attrNames |>
b.map (f: ./${f});
in
{
imports = module_files;
nixpkgs.config.allowUnfree = true;
}

View File

@@ -0,0 +1,33 @@
{ inputs, pkgs, ... }:
{
imports = [
inputs.spicetify-nix.homeManagerModules.default
];
programs.spicetify =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
enable = true;
enabledExtensions = with spicePkgs.extensions; [
hidePodcasts
shuffle # shuffle+ (special characters are sanitized out of extension names)
betterGenres
lastfm
adblock
beautifulLyrics
aiBandBlocker
];
enabledCustomApps = with spicePkgs.apps; [
lyricsPlus
betterLibrary
newReleases
];
enabledSnippets = with spicePkgs.snippets; [
pointer
];
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
};
}

104
home/desktop/vesktop.nix Normal file
View File

@@ -0,0 +1,104 @@
{ pkgs, username, ... }:
{
home.packages = [
(pkgs.writeShellScriptBin "vesktop-portable" ''
exec /home/${username}/vesktop/vesktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true --enable-blink-features=MiddleClickAutoscroll "$@"
'')
];
xdg.desktopEntries.vesktop = {
name = "Vesktop";
genericName = "Discord Client";
exec = "vesktop-portable %U";
icon = "vesktop";
terminal = false;
categories = [ "Network" "InstantMessaging" "Chat" ];
};
programs.vesktop = {
enable = true;
package = pkgs.vesktop.override {
withMiddleClickScroll = true;
};
settings = {
arRPC = true;
tray = true;
minimizeToTray = true;
};
vencord = {
settings = {
plugins = {
AlwaysTrust.enabled = true;
BetterSessions.enabled = true;
BetterSettings.enabled = true;
BiggerStreamPreview.enabled = true;
CallTimer.enabled = true;
ClearURLs.enabled = true;
CopyEmojiMarkdown.enabled = true;
CopyFileContents.enabled = true;
CopyUserURLs.enabled = true;
CrashHandler.enabled = true;
CustomIdle = {
enabled = true;
idleTimeout = 0;
remainInIdle = false;
};
Dearrow.enabled = true;
DisableCallIdle.enabled = true;
ExpressionCloner.enabled = true;
FavoriteEmojiFirst.enabled = true;
FixSpotifyEmbeds.enabled = true;
FixYoutubeEmbeds.enabled = true;
FullSearchContext.enabled = true;
GameActivityToggle.enabled = true;
GifPaste.enabled = true;
ImageZoom.enabled = true;
LoadingQuotes.enabled = true;
MemberCount.enabled = true;
MentionAvatars.enabled = true;
MessageLinkEmbeds.enabled = true;
MessageLogger = {
enabled = true;
inlineEdits = false;
};
NewGuildSettings.enabled = true;
NoF1.enabled = true;
NoOnboardingDelay.enabled = true;
NormalizeMessageLinks.enabled = true;
NoUnblockToJump.enabled = true;
OnePingPerDm.enabled = true;
OpenInApp.enabled = true;
petpet.enabled = true;
ReadAllNotificationsButton.enabled = true;
RelationshipNotifier.enabled = true;
ReverseImageSearch.enabled = true;
ServerInfo.enabled = true;
ServerListIndicators.enabled = false;
ShowHiddenChannels.enabled = true;
ShowHiddenThings.enabled = true;
SpotifyControls.enabled = true;
ThemeAttributes.enabled = true;
TypingIndicator.enabled = true;
TypingTweaks.enabled = true;
UnlockedAvatarZoom.enabled = true;
UnsuppressEmbeds.enabled = true;
UserVoiceShow.enabled = true;
ValidUser.enabled = true;
ViewIcons.enabled = true;
ViewRaw.enabled = true;
VoiceChatDoubleClick.enabled = true;
VoiceDownload.enabled = true;
VoiceMessages.enabled = true;
WebKeybinds.enabled = true;
WebScreenShareFixes.enabled = true;
WhoReacted.enabled = true;
YoutubeAdblock.enabled = true;
DisableDeepLinks.enabled = true;
NoTrack.enabled = true;
Settings.enabled = true;
SupportHelper.enabled = true;
WebContextMenus.enabled = true;
};
};
};
};
}

11
home/desktop/vscode.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
programs.vscode = {
enable = true;
profiles.default.extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
catppuccin.catppuccin-vsc-icons
catppuccin.catppuccin-vsc
];
};
}

View File

@@ -0,0 +1,98 @@
{ inputs, pkgs, ... }:
{
imports = [
inputs.zen-browser.homeModules.beta
];
home.file."catppuccin-zen" = {
target = ".zen/default/chrome/catppuccin-zen";
source = (
fetchTarball {
url = "https://github.com/catppuccin/zen-browser/tarball/c855685442c6040c4dda9c8d3ddc7b708de1cbaa";
sha256 = "sha256:03ky8s5h9vkw4cp3nm86b0bk5qbjmqgyqq9a95xqzard4wppn3p4";
});
};
programs.zen-browser = {
enable = true;
nativeMessagingHosts = [pkgs.firefoxpwa];
policies = {
AutofillAddressEnabled = false;
AutofillCreditCardEnabled = false;
DisableAppUpdate = true;
DisableFeedbackCommands = true;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DontCheckDefaultBrowser = true;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
};
profiles.default.settings = {
"zen.view.use-single-toolbar" = false;
"zen.urlbar.replace-newtab" = false;
"identity.fxaccounts.autoconfig.uri" = "https://www.fxa.hibana.me";
"general.autoScroll" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
profiles.default.extensions.packages =
with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
ublock-origin
dearrow
bitwarden
istilldontcareaboutcookies
return-youtube-dislikes
sponsorblock
youtube-nonstop
youtube-high-definition
absolute-enable-right-click
augmented-steam
clearurls
darkreader
karakeep
newtab-adapter
steam-database
unpaywall
violentmonkey
];
profiles.default.userChrome = ''
@import "catppuccin-zen/themes/Mocha/Mauve/userChrome.css";
'';
profiles.default.userContent = ''
@import "catppuccin-zen/themes/Mocha/Mauve/userContent.css";
'';
};
xdg.mimeApps = let
value = let
zen-browser = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.beta; # or twilight
in
zen-browser.meta.desktopFileName;
associations = builtins.listToAttrs (map (name: {
inherit name value;
}) [
"application/x-extension-shtml"
"application/x-extension-xhtml"
"application/x-extension-html"
"application/x-extension-xht"
"application/x-extension-htm"
"x-scheme-handler/unknown"
"x-scheme-handler/mailto"
"x-scheme-handler/chrome"
"x-scheme-handler/about"
"x-scheme-handler/https"
"x-scheme-handler/http"
"application/xhtml+xml"
"application/json"
"text/plain"
"text/html"
]);
in {
associations.added = associations;
defaultApplications = associations;
};
}