chore: fix unnecessary and not available pkgs, cleaning

This commit is contained in:
Rasyidan Akbar F. 2025-10-24 16:52:06 +07:00
commit 2585a86dc9
25 changed files with 703 additions and 462 deletions

View file

@ -1,6 +1,5 @@
{ pkgs, lib, ... }: {
home.stateVersion = "24.05";
{ pkgs, lib, ... }:
{
imports = [
./programs/helix.nix
./programs/neovim.nix
@ -11,101 +10,62 @@
./secrets.nix
];
programs.git.enable = true;
config = {
home.stateVersion = "24.05";
home.packages = with pkgs; [ docker docker-compose ];
# XDG Base Directory specification
# Ensures ~/.config, ~/.local/share, ~/.cache are properly set up
# Note: User directories (Desktop, Downloads, etc.) are configured in desktop modules
xdg.enable = true;
rsydn.aiTools = {
enable = lib.mkDefault true;
claude.zai.enable = lib.mkDefault true;
};
programs.git.enable = true;
rsydn.devTools = {
enable = lib.mkDefault true;
packages = with pkgs; [
ast-grep
cloudflared
ffmpeg
fzf
htop
jetbrains-mono
jq
jujutsu
lazydocker
lazygit
lorri
nil
nixd
pandoc
ripgrep
tmux
tree
curl
vim
wget
yq
home.packages = with pkgs; [
docker
docker-compose
];
};
rsydn.languages = {
enable = lib.mkDefault true;
# Disable global language tools - use nix develop shells instead
cargo.enable = false;
go.enable = false;
bun.enable = false;
# Keep uv for MCP server and node for npx/tooling
uv.enable = true;
node.enable = true;
};
rsydn.aiTools = {
enable = lib.mkDefault true;
claude.zai.enable = lib.mkDefault true;
};
rsydn.secrets = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
enable = lib.mkDefault true;
defaultSopsFile = ../../../secrets/local-ai-tokens.sops.yaml;
secrets = {
"openai-api-key" = {
format = "yaml";
key = "OPENAI_API_KEY";
};
rsydn.devTools = {
enable = lib.mkDefault true;
packages = with pkgs; [
ast-grep
cloudflared
ffmpeg
fzf
htop
jetbrains-mono
jq
jujutsu
lazydocker
lazygit
lorri
nil
nixd
pandoc
ripgrep
tmux
tree
curl
vim
wget
yq
];
};
"openrouter-api-key" = {
format = "yaml";
key = "OPENROUTER_API_KEY";
};
"zai-api-key" = {
format = "yaml";
key = "ZAI_API_KEY";
};
"moonshot-api-key" = {
format = "yaml";
key = "MOONSHOT_API_KEY";
};
"anthropic-api-key" = {
format = "yaml";
key = "ANTHROPIC_API_KEY";
};
"exa-api-key" = {
format = "yaml";
key = "EXA_API_KEY";
};
"fal-api-key" = {
format = "yaml";
key = "FAL_API_KEY";
};
"groq-api-key" = {
format = "yaml";
key = "GROQ_API_KEY";
};
"firecrawl-api-key" = {
format = "yaml";
key = "FIRECRAWL_API_KEY";
};
rsydn.languages = {
enable = lib.mkDefault true;
# Disable global language tools - use nix develop shells instead
cargo.enable = false;
go.enable = false;
bun.enable = false;
# Keep uv for MCP server and node for npx/tooling
uv.enable = true;
node.enable = true;
};
};
}

View file

@ -1,19 +0,0 @@
{ pkgs, ... }: {
# Browser configurations
home.packages = with pkgs;
[
firefox
# chromium
# brave
];
# Firefox config (expand as needed)
# programs.firefox = {
# enable = true;
# profiles.default = {
# settings = {
# "browser.startup.homepage" = "about:home";
# };
# };
# };
}

View file

@ -1,27 +0,0 @@
{ pkgs, lib, ... }: {
# Terminal emulators
# Kitty - GPU-accelerated terminal
programs.kitty = {
enable = lib.mkDefault false;
# theme = "Dracula";
# settings = {
# font_family = "JetBrains Mono";
# font_size = 12;
# };
};
# Alacritty - GPU-accelerated terminal
programs.alacritty = {
enable = lib.mkDefault false;
# settings = {
# font.normal.family = "JetBrains Mono";
# font.size = 12;
# };
};
# WezTerm - GPU-accelerated terminal
# programs.wezterm = {
# enable = false;
# };
}

View file

@ -1,36 +0,0 @@
{ lib, pkgs, config, ... }: {
# Base desktop user configuration
# GTK theming
gtk = {
enable = lib.mkDefault true;
theme = lib.mkDefault {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
};
# Qt theming
qt = {
enable = lib.mkDefault true;
platformTheme.name = lib.mkDefault "gtk";
style.name = lib.mkDefault "adwaita-dark";
};
# XDG user directories
xdg = {
enable = true;
userDirs = {
enable = true;
createDirectories = true;
};
};
# Basic GUI packages
home.packages = with pkgs;
[
# Add common desktop apps here
# firefox
# vscodium
];
}

View file

@ -1,21 +0,0 @@
# Themes
Add your theme configurations here. Each theme should set:
- GTK theme
- Qt theme
- Terminal colors
- Compositor colors (if applicable)
- Wallpapers
Example structure:
```nix
# catppuccin.nix
{ pkgs, ... }: {
gtk.theme = {
name = "Catppuccin-Mocha";
package = pkgs.catppuccin-gtk;
};
# ... more theme settings
}
```

View file

@ -1,10 +0,0 @@
{ ... }: {
# Wayland compositor configurations
# Import the compositor you want to use
imports = [
# Uncomment the one you want:
# ./hyprland
# ./niri
];
}

View file

@ -1,44 +0,0 @@
{ lib, pkgs, ... }: {
# Hyprland user configuration
wayland.windowManager.hyprland = {
enable = lib.mkDefault true;
xwayland.enable = lib.mkDefault true;
settings = {
# Minimal config - expand as needed
"$mod" = "SUPER";
# Example keybinds
bind = [
"$mod, Return, exec, kitty" # Terminal
"$mod, Q, killactive"
"$mod, M, exit"
"$mod, F, fullscreen"
"$mod, Space, togglefloating"
# Move focus
"$mod, h, movefocus, l"
"$mod, l, movefocus, r"
"$mod, k, movefocus, u"
"$mod, j, movefocus, d"
];
# Example settings
general = {
gaps_in = 5;
gaps_out = 10;
border_size = 2;
};
decoration = { rounding = 8; };
};
};
# Hyprland utilities
home.packages = with pkgs;
[
# wofi # Launcher
# waybar # Status bar
# dunst # Notifications
];
}

View file

@ -1,35 +0,0 @@
{ lib, pkgs, ... }: {
# Niri user configuration
programs.niri = {
settings = {
# Minimal config - expand as needed
input = { keyboard.xkb = { layout = "us"; }; };
# Example keybinds
binds = {
"Mod+Return".action.spawn = [ "kitty" ];
"Mod+Q".action.close-window = { };
"Mod+F".action.fullscreen-window = { };
# Focus movement
"Mod+H".action.focus-column-left = { };
"Mod+L".action.focus-column-right = { };
"Mod+J".action.focus-window-down = { };
"Mod+K".action.focus-window-up = { };
};
layout = {
gaps = 8;
center-focused-column = "never";
};
};
};
# Niri utilities
home.packages = with pkgs;
[
# fuzzel # Launcher (recommended for niri)
# waybar # Status bar
# dunst # Notifications
];
}