feat: Move gui-programs to apps

This commit is contained in:
uttarayan21
2025-03-26 01:17:14 +05:30
parent cf2833d567
commit ceaf555686
10 changed files with 18 additions and 27 deletions

7
home/apps/cursor.nix Normal file
View File

@@ -0,0 +1,7 @@
{
pkgs,
lib,
...
}: {
home.packages = lib.optionals pkgs.stdenv.isLinux [pkgs.code-cursor];
}

View File

@@ -1,15 +1,21 @@
{
pkgs,
lib,
device,
...
}: {
imports = [
./guitarix.nix
./bambu-studio.nix
./zed.nix
./cursor.nix
./firefox.nix
./ghostty.nix
./guitarix.nix
./kitty.nix
./mpv.nix
./obs-studio.nix
./zathura.nix
./vlc.nix
./vscode.nix
./wezterm.nix
./zathura.nix
./zed.nix
];
# home.packages = [];
}

57
home/apps/firefox.nix Normal file
View File

@@ -0,0 +1,57 @@
{
device,
pkgs,
...
}: let
config = {
enable = pkgs.stdenv.isLinux;
profiles.default = {
extensions.packages = 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;
};
};
};
in {
programs.librewolf = config;
programs.firefox = config;
}

23
home/apps/ghostty.nix Normal file
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;
};
}

29
home/apps/kitty.nix Normal file
View File

@@ -0,0 +1,29 @@
{
pkgs,
device,
inputs,
...
}: {
programs.kitty = {
enable = pkgs.stdenv.isLinux;
# 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;
};
}

9
home/apps/mpv.nix Normal file
View File

@@ -0,0 +1,9 @@
{pkgs, ...}: {
programs.mpv = {
enable = true;
package =
if pkgs.stdenv.isLinux
then pkgs.mpv-unwrapped.wrapper {mpv = pkgs.mpv-unwrapped.override {sixelSupport = true;};}
else pkgs.mpv;
};
}

17
home/apps/vscode.nix Normal file
View File

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

46
home/apps/wezterm.nix Normal file
View File

@@ -0,0 +1,46 @@
{
pkgs,
device,
...
}: {
programs.wezterm = {
enable = true;
extraConfig =
/*
lua
*/
''
return {
term = "wezterm",
font = wezterm.font_with_fallback({
"Hasklug Nerd Font Mono",
"Symbols Nerd Font Mono"
}),
color_scheme = "Catppuccin Mocha",
colors = {
background = "#000000",
},
font_size = 16,
initial_cols = 200,
hide_tab_bar_if_only_one_tab = true,
window_background_opacity = 0.8,
-- background = {{source = {Color = "black"}}},
-- 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 = "${
if pkgs.stdenv.isLinux
then "NONE"
else "RESIZE"
}",
use_ime = false,
}
'';
};
}