feat: restructure and move apps into their own configs (#2)
This commit is contained in:
3
home/gui-programs/cursor.nix
Normal file
3
home/gui-programs/cursor.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.code-cursor];
|
||||
}
|
||||
16
home/gui-programs/default.nix
Normal file
16
home/gui-programs/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
lib,
|
||||
device,
|
||||
...
|
||||
}: {
|
||||
imports =
|
||||
[]
|
||||
++ (lib.optionals device.hasGui [
|
||||
./cursor.nix
|
||||
./firefox.nix
|
||||
./ghostty.nix
|
||||
./kitty.nix
|
||||
./vscodium.nix
|
||||
./wezterm.nix
|
||||
]);
|
||||
}
|
||||
64
home/gui-programs/firefox.nix
Normal file
64
home/gui-programs/firefox.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/gui-programs/ghostty.nix
Normal file
23
home/gui-programs/ghostty.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
29
home/gui-programs/kitty.nix
Normal file
29
home/gui-programs/kitty.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
13
home/gui-programs/vscodium.nix
Normal file
13
home/gui-programs/vscodium.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
39
home/gui-programs/wezterm.nix
Normal file
39
home/gui-programs/wezterm.nix
Normal 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,
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user