feat: restructure and move apps into their own configs (#2)

This commit is contained in:
Uttarayan
2025-02-05 17:09:33 +05:30
committed by GitHub
parent e25f478315
commit 0a26d94f77
52 changed files with 662 additions and 482 deletions

View File

@@ -0,0 +1,3 @@
{pkgs, ...}: {
home.packages = [pkgs.code-cursor];
}

View File

@@ -0,0 +1,16 @@
{
lib,
device,
...
}: {
imports =
[]
++ (lib.optionals device.hasGui [
./cursor.nix
./firefox.nix
./ghostty.nix
./kitty.nix
./vscodium.nix
./wezterm.nix
]);
}

View File

@@ -0,0 +1,64 @@
{
device,
pkgs,
...
}: {
programs.firefox = {
enable = pkgs.stdenv.isLinux;
profiles.default = {
# userChrome =
# /*
# css
# */
# ''
# @import url(${pkgs.csshacks}/chrome/toolbars_below_content.css);
# @import url(${pkgs.csshacks}/chrome/scrollable_menupopups.css);
# @import url(${pkgs.csshacks}/chrome/linux_gtk_window_control_patch.css);
# @import url(${pkgs.csshacks}/chrome/window_control_placeholder_support.css);
# '';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
privacy-badger
violentmonkey
tridactyl
clearurls
onepassword-password-manager
ublock-origin
i-dont-care-about-cookies
keepa
sponsorblock
];
};
nativeMessagingHosts = [pkgs.tridactyl-native];
policies = {
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
FeatureRecommendations = false;
SkipOnboarding = true;
Preferences = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = {
Value = true;
Status = "default";
};
"browser.urlbar.suggest.calculator" = {
Value = true;
Status = "default";
};
"extensions.quarantinedDomains.enabled" = {
Value = false;
Status = "default";
};
};
FirefoxHome = {
"Search" = true;
"TopSites" = false;
"SponsoredTopSites" = false;
"Highlights" = false;
"Pocket" = false;
"SponsoredPocket" = false;
"Snippets" = false;
"Locked" = false;
};
};
};
}

View File

@@ -0,0 +1,23 @@
{
pkgs,
device,
inputs,
...
}: {
programs.ghostty = {
enable = pkgs.stdenv.isLinux;
installBatSyntax = false;
settings = {
theme = "catppuccin-mocha";
# font-family = [
# ""
# "Hasklug Nerd Font Mono"
# ];
window-decoration = false;
title = "";
command = "fish";
background-opacity = 0.8;
};
package = pkgs.ghostty;
};
}

View File

@@ -0,0 +1,29 @@
{
pkgs,
device,
inputs,
...
}: {
programs.kitty = {
enable = true;
# enable = false;
font = {
# name = "FiraCode Nerd Font Mono";
# name = "Hasklug Nerd Font Mono";
name = "Monaspace Krypton Var Light";
size = 13;
};
settings = {
background_opacity = "0.8";
background = "#000000";
shell = "${pkgs.fish}/bin/fish";
hide_window_decorations = "yes";
};
shellIntegration.enableFishIntegration = true;
darwinLaunchOptions = [
"--single-instance"
];
themeFile = "Catppuccin-Mocha";
package = inputs.nixpkgs-master.legacyPackages.${device.system}.kitty;
};
}

View File

@@ -0,0 +1,13 @@
{pkgs, ...}: {
programs = {
# Only for checking markdown previews
vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
shd101wyy.markdown-preview-enhanced
asvetliakov.vscode-neovim
];
};
};
}

View File

@@ -0,0 +1,39 @@
{
pkgs,
device,
...
}: {
programs.wezterm = {
enable = true;
extraConfig =
/*
lua
*/
''
local wezterm = require 'wezterm';
return {
term = "wezterm",
font = wezterm.font_with_fallback({
"Hasklug Nerd Font Mono",
"Symbols Nerd Font Mono"
}),
color_scheme = "Catppuccin Mocha",
font_size = 16,
initial_cols = 200,
hide_tab_bar_if_only_one_tab = true,
window_background_opacity = 0.8,
cursor_blink_rate = 8,
# default_cursor_style = "BlinkingBlock",
default_prog = { "${pkgs.fish}/bin/fish", "-l" },
window_padding = {
left = 2,
right = 0,
top = 2,
bottom = 0,
},
window_decorations = "RESIZE",
use_ime = false,
}
'';
};
}