2025-06-10 12:22:47 -05:00
|
|
|
{ pkgs, inputs, ... }:
|
2025-06-06 11:12:31 -05:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
home.username = "roy";
|
|
|
|
|
home.homeDirectory = "/home/roy";
|
|
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
|
age
|
2025-07-03 15:51:09 -05:00
|
|
|
awscli2
|
2025-06-06 11:12:31 -05:00
|
|
|
dig
|
2025-06-26 12:34:00 -05:00
|
|
|
discord
|
2025-06-06 11:12:31 -05:00
|
|
|
ffmpeg_6
|
2025-07-05 12:25:50 -05:00
|
|
|
fish
|
2025-06-06 11:12:31 -05:00
|
|
|
git
|
2025-06-10 12:22:47 -05:00
|
|
|
git-filter-repo
|
2025-09-04 22:21:32 -05:00
|
|
|
go
|
2025-06-06 11:12:31 -05:00
|
|
|
grim
|
2025-12-20 20:10:07 -06:00
|
|
|
jq
|
2025-06-06 11:12:31 -05:00
|
|
|
kdePackages.gwenview
|
2025-07-03 15:51:09 -05:00
|
|
|
minio-client
|
2025-11-15 22:51:40 -06:00
|
|
|
nodejs_22
|
2025-11-23 20:57:29 -06:00
|
|
|
postman
|
2025-06-06 11:12:31 -05:00
|
|
|
prismlauncher
|
2025-12-07 19:39:03 -06:00
|
|
|
python3
|
2025-06-06 11:12:31 -05:00
|
|
|
slurp
|
|
|
|
|
sops
|
2026-05-11 22:13:27 -05:00
|
|
|
spotify
|
2025-06-06 11:12:31 -05:00
|
|
|
ssh-to-age
|
|
|
|
|
tree
|
2025-06-21 22:43:37 -05:00
|
|
|
tmux
|
2025-06-06 11:12:31 -05:00
|
|
|
unzip
|
|
|
|
|
vlc
|
|
|
|
|
wl-clipboard
|
2026-03-08 11:53:06 -05:00
|
|
|
woeusb
|
2025-12-01 18:40:34 -06:00
|
|
|
wofi
|
2026-06-09 23:39:59 -05:00
|
|
|
xrandr
|
2025-06-06 11:12:31 -05:00
|
|
|
yq-go
|
|
|
|
|
zip
|
|
|
|
|
];
|
|
|
|
|
|
2026-06-14 11:33:49 -05:00
|
|
|
# MOVE TO IT's OWN PLACE
|
|
|
|
|
programs.fish = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
functions.fish_greeting = "";
|
|
|
|
|
functions.fish_prompt = ''
|
|
|
|
|
function fish_prompt --description 'Write out the prompt'
|
|
|
|
|
set -l last_pipestatus $pipestatus
|
|
|
|
|
set -lx __fish_last_status $status # Export for __fish_print_pipestatus.
|
|
|
|
|
set -l normal (set_color normal)
|
|
|
|
|
set -q fish_color_status
|
|
|
|
|
or set -g fish_color_status red
|
|
|
|
|
|
|
|
|
|
# Color the prompt differently when we're root
|
|
|
|
|
set -l color_cwd $fish_color_cwd
|
|
|
|
|
set -l suffix '>'
|
|
|
|
|
if functions -q fish_is_root_user; and fish_is_root_user
|
|
|
|
|
if set -q fish_color_cwd_root
|
|
|
|
|
set color_cwd $fish_color_cwd_root
|
|
|
|
|
end
|
|
|
|
|
set suffix '#'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Write pipestatus
|
|
|
|
|
# If the status was carried over (if no command is issued or if `set` leaves the status untouched), don't bold it.
|
|
|
|
|
set -l bold_flag --bold
|
|
|
|
|
set -q __fish_prompt_status_generation; or set -g __fish_prompt_status_generation $status_generation
|
|
|
|
|
if test $__fish_prompt_status_generation = $status_generation
|
|
|
|
|
set bold_flag
|
|
|
|
|
end
|
|
|
|
|
set __fish_prompt_status_generation $status_generation
|
|
|
|
|
set -l status_color (set_color $fish_color_status)
|
|
|
|
|
set -l statusb_color (set_color $bold_flag $fish_color_status)
|
|
|
|
|
set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
|
|
|
|
|
|
|
|
|
|
echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal " "$prompt_status $suffix " "
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function prompt_pwd --description 'short CWD for the prompt'
|
|
|
|
|
set -l options h/help d/dir-length= D/full-length-dirs=
|
|
|
|
|
argparse -n prompt_pwd $options -- $argv
|
|
|
|
|
or return
|
|
|
|
|
|
|
|
|
|
if set -q _flag_help
|
|
|
|
|
__fish_print_help prompt_pwd
|
|
|
|
|
return 0
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
set -q argv[1]
|
|
|
|
|
or set argv $PWD
|
|
|
|
|
|
|
|
|
|
set -ql _flag_d
|
|
|
|
|
and set -l fish_prompt_pwd_dir_length $_flag_d
|
|
|
|
|
|
|
|
|
|
set -q fish_prompt_pwd_dir_length
|
|
|
|
|
or set -l fish_prompt_pwd_dir_length 1
|
|
|
|
|
|
|
|
|
|
set -l fulldirs 0
|
|
|
|
|
set -ql _flag_D
|
|
|
|
|
and set -l fish_prompt_pwd_full_dirs $_flag_D
|
|
|
|
|
|
|
|
|
|
set -q fish_prompt_pwd_full_dirs
|
|
|
|
|
or set -l fish_prompt_pwd_full_dirs 1
|
|
|
|
|
|
|
|
|
|
for path in $argv
|
|
|
|
|
# Replace $HOME with "~"
|
|
|
|
|
set -l realhome (string escape --style=regex -- ~)
|
|
|
|
|
set -l tmp (string replace -r '^'"$realhome"'($|/)' '~$1' $path)
|
|
|
|
|
|
|
|
|
|
if test "$fish_prompt_pwd_dir_length" -eq 0
|
|
|
|
|
echo $tmp
|
|
|
|
|
else
|
|
|
|
|
# Shorten to at most $fish_prompt_pwd_dir_length characters per directory
|
|
|
|
|
# with full-length-dirs components left at full length.
|
|
|
|
|
set -l full
|
|
|
|
|
if test $fish_prompt_pwd_full_dirs -gt 0
|
|
|
|
|
set -l all (string split -m (math $fish_prompt_pwd_full_dirs - 1) -r / $tmp)
|
|
|
|
|
set tmp $all[1]
|
|
|
|
|
set full $all[2..]
|
|
|
|
|
else if test $fish_prompt_pwd_full_dirs -eq 0
|
|
|
|
|
# 0 means not even the last component is kept
|
|
|
|
|
string replace -ar '(\.?[^/]{'"$fish_prompt_pwd_dir_length"'})[^/]*' '$1' $tmp
|
|
|
|
|
continue
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
string join / -- (string replace -ar -- '(\.?[^/]{'"$fish_prompt_pwd_dir_length"'})[^/]*/' '$1/' $tmp) $full
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-06 11:12:31 -05:00
|
|
|
programs.git = {
|
|
|
|
|
enable = true;
|
2025-12-02 01:34:47 -06:00
|
|
|
settings = {
|
2025-12-02 01:34:10 -06:00
|
|
|
user.name = "Roy Dumblauskas";
|
|
|
|
|
user.email = "roydumblauskas@gmail.com";
|
2026-06-10 00:26:43 -05:00
|
|
|
|
|
|
|
|
alias = {
|
|
|
|
|
gp = "push";
|
|
|
|
|
gc = "commit -am";
|
|
|
|
|
ga = "git add .";
|
|
|
|
|
gs = "git status";
|
|
|
|
|
};
|
2025-12-02 01:34:10 -06:00
|
|
|
};
|
2026-06-09 22:56:10 -05:00
|
|
|
|
2025-06-06 11:12:31 -05:00
|
|
|
};
|
|
|
|
|
|
2026-06-14 11:33:49 -05:00
|
|
|
programs.alacritty = {
|
|
|
|
|
enable = true;
|
2026-06-14 11:36:56 -05:00
|
|
|
theme = "catppuccin_frappe";
|
2026-06-14 11:33:49 -05:00
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
terminal.shell = "fish";
|
|
|
|
|
|
|
|
|
|
font = {
|
|
|
|
|
normal.family = "UbuntuMono Nerd Font";
|
|
|
|
|
normal.italic = "UbuntuMono Nerd Font";
|
|
|
|
|
normal.bold = "UbuntuMono Nerd Font";
|
|
|
|
|
size = 16;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
window = {
|
|
|
|
|
decorations = "full";
|
|
|
|
|
opacity = 1;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-06 11:42:42 -05:00
|
|
|
# user program config files
|
|
|
|
|
home.file = {
|
2025-06-07 15:31:09 -05:00
|
|
|
".config/hypr".source = ./roy-config/hypr;
|
|
|
|
|
".config/waybar".source = ./roy-config/waybar;
|
2025-12-07 19:21:41 -06:00
|
|
|
".local/share/PrismLauncher/instances/1.21.6/minecraft/options.txt".source =
|
|
|
|
|
./roy-config/PrismLauncher/instances/1.21.6/minecraft/options.txt;
|
|
|
|
|
".local/share/PrismLauncher/instances/1.21.6/minecraft/servers.dat".source =
|
|
|
|
|
./roy-config/PrismLauncher/instances/1.21.6/minecraft/servers.dat;
|
2025-06-06 11:42:42 -05:00
|
|
|
};
|
2025-12-07 19:21:41 -06:00
|
|
|
|
2025-06-06 11:42:42 -05:00
|
|
|
# user persisted dirs
|
2026-02-14 15:52:25 -06:00
|
|
|
home.persistence."/persist" = {
|
2025-06-06 11:42:42 -05:00
|
|
|
directories = [
|
|
|
|
|
".ssh"
|
|
|
|
|
"rp"
|
2025-07-03 15:51:09 -05:00
|
|
|
"dl"
|
2025-06-07 18:27:50 -05:00
|
|
|
".mozilla/firefox/roy/storage/default"
|
|
|
|
|
".cache/mozilla/firefox/roy"
|
2025-09-07 15:02:04 -05:00
|
|
|
# persist steam
|
2025-09-07 17:01:17 -05:00
|
|
|
".local/share/Steam"
|
2025-06-07 18:27:50 -05:00
|
|
|
];
|
|
|
|
|
files = [
|
|
|
|
|
".bash_history"
|
|
|
|
|
".mozilla/firefox/roy/places.sqlite"
|
|
|
|
|
".mozilla/firefox/roy/cookies.sqlite"
|
2025-06-10 10:48:54 -05:00
|
|
|
".config/sops/age/keys.txt"
|
2025-07-05 14:21:06 -05:00
|
|
|
".local/share/PrismLauncher/accounts.json"
|
2025-07-05 14:58:56 -05:00
|
|
|
".local/share/PrismLauncher/instances/1.21.6/instance.cfg"
|
|
|
|
|
".local/share/PrismLauncher/instances/1.21.6/mmc-pack.json"
|
2025-06-06 11:42:42 -05:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-10 10:03:20 -05:00
|
|
|
# User services must come after sops secrets
|
|
|
|
|
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
|
|
|
|
|
|
2025-06-07 17:47:39 -05:00
|
|
|
# Configure firefox to be resilient against reboot
|
2025-06-07 17:52:45 -05:00
|
|
|
# Source = https://github.com/johnmpost/nixos-config
|
2025-06-07 17:47:39 -05:00
|
|
|
programs.firefox = {
|
2026-06-10 00:26:43 -05:00
|
|
|
configPath = ".mozilla/firefox";
|
2025-06-07 17:47:39 -05:00
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
profiles.roy = {
|
|
|
|
|
search = {
|
2025-06-07 17:52:45 -05:00
|
|
|
force = true;
|
|
|
|
|
default = "ddgc";
|
|
|
|
|
privateDefault = "ddgc";
|
|
|
|
|
engines = {
|
|
|
|
|
bing.metaData.hidden = true;
|
|
|
|
|
ddg.metaData.hidden = true;
|
|
|
|
|
google.metaData.hidden = true;
|
|
|
|
|
wikipedia.metaData.hidden = true;
|
|
|
|
|
amazon.metaData.hidden = true;
|
|
|
|
|
ebay.metaData.hidden = true;
|
|
|
|
|
ddgc = {
|
2025-06-07 18:43:55 -05:00
|
|
|
name = "DuckDuckGo (unthemed)";
|
2025-12-07 19:21:41 -06:00
|
|
|
urls = [ { template = "https://duckduckgo.com/?q={searchTerms}"; } ];
|
2025-06-07 17:52:45 -05:00
|
|
|
icon = "https://duckduckgo.com/favicon.ico";
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-06-07 17:47:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extensions.force = true;
|
2025-12-02 01:26:30 -06:00
|
|
|
extensions.packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
2025-12-07 19:21:41 -06:00
|
|
|
ublock-origin
|
2025-08-16 14:27:58 -05:00
|
|
|
vimium-c
|
2025-12-07 19:21:41 -06:00
|
|
|
];
|
2025-06-07 17:47:39 -05:00
|
|
|
extensions.settings."uBlock0@raymondhill.net".settings = {
|
2025-06-07 17:52:45 -05:00
|
|
|
selectedFilterLists = [
|
|
|
|
|
"ublock-filters"
|
|
|
|
|
"ublock-badware"
|
|
|
|
|
"ublock-privacy"
|
|
|
|
|
"ublock-quick-fixes"
|
|
|
|
|
"ublock-unbreak"
|
|
|
|
|
"easylist-chat"
|
|
|
|
|
"easylist-newsletters"
|
|
|
|
|
"easylist-notifications"
|
|
|
|
|
"easylist-annoyances"
|
|
|
|
|
"adguard-mobile-app-banners"
|
|
|
|
|
"adguard-other-annoyances"
|
|
|
|
|
"adguard-popup-overlays"
|
|
|
|
|
"adguard-widgets"
|
|
|
|
|
"ublock-annoyances"
|
|
|
|
|
];
|
2025-06-07 17:47:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
# don't force manual enablement of extensions on first launch
|
|
|
|
|
"extensions.autoDisableScopes" = 0;
|
|
|
|
|
"browser.urlbar.shortcuts.bookmarks" = false;
|
|
|
|
|
"browser.urlbar.shortcuts.history" = false;
|
|
|
|
|
"browser.urlbar.shortcuts.tabs" = false;
|
|
|
|
|
"browser.aboutConfig.showWarning" = false;
|
2025-06-07 17:52:45 -05:00
|
|
|
"dom.security.https_only_mode" = true;
|
|
|
|
|
"privacy.trackingprotection.enabled" = true;
|
|
|
|
|
"privacy.trackingprotection.pbmode.enabled" = true;
|
|
|
|
|
"privacy.donottrackheader.enabled" = true;
|
|
|
|
|
"signon.rememberSignons" = false;
|
|
|
|
|
"extensions.formautofill.creditCards.enabled" = false;
|
|
|
|
|
"extensions.formautofill.addresses.enabled" = false;
|
|
|
|
|
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
|
2025-06-07 17:47:39 -05:00
|
|
|
# hide weather on new tab page
|
2025-06-07 17:52:45 -05:00
|
|
|
"browser.newtabpage.activity-stream.showWeather" = false;
|
|
|
|
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
|
|
|
|
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
|
|
|
|
"browser.toolbars.bookmarks.visibility" = "never";
|
|
|
|
|
# set default download dir (to avoid Download dir creation)
|
|
|
|
|
"browser.download.dir" = "/home/roy/dl";
|
|
|
|
|
"browser.download.useDownloadDir" = false;
|
|
|
|
|
"browser.download.folderList" = 2;
|
|
|
|
|
"full-screen-api.ignore-widgets" = true;
|
|
|
|
|
"browser.tabs.firefox-view" = false;
|
|
|
|
|
"browser.gesture.swipe.left" = "";
|
|
|
|
|
"browser.gesture.swipe.right" = "";
|
|
|
|
|
"pdfjs.sidebarViewOnLoad" = 0;
|
|
|
|
|
"identity.fxaccounts.enabled" = false;
|
|
|
|
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
|
|
|
"browser.uitour.enabled" = false;
|
|
|
|
|
"toolkit.telemetry.enabled" = false;
|
|
|
|
|
# don't show about:welcome or privacy page on first launch
|
|
|
|
|
"browser.aboutwelcome.enabled" = false;
|
|
|
|
|
"datareporting.policy.dataSubmissionPolicyBypassNotification" = true;
|
|
|
|
|
# disable pocket
|
|
|
|
|
"extensions.pocket.enabled" = false;
|
|
|
|
|
# keep window open when closing all tabs
|
|
|
|
|
"browser.tabs.closeWindowWithLastTab" = false;
|
|
|
|
|
# allegedly disable addon recommendations
|
|
|
|
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
|
|
|
|
|
# allegedly disable feature recommendations
|
|
|
|
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
|
|
|
|
|
# don't show "open previous tabs?" toolbar, hopefully still allow functionality
|
|
|
|
|
"browser.startup.couldRestoreSession.count" = -1;
|
2025-06-07 17:47:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
bookmarks.force = true;
|
|
|
|
|
bookmarks.settings = [
|
2025-06-07 17:52:45 -05:00
|
|
|
{
|
|
|
|
|
name = "google search";
|
|
|
|
|
url = "https://www.google.com/search?q=%s";
|
|
|
|
|
keyword = "g";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "youtube search";
|
|
|
|
|
url = "https://www.youtube.com/results?search_query=%s";
|
|
|
|
|
keyword = "yt";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "wikipedia search";
|
|
|
|
|
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s";
|
|
|
|
|
keyword = "w";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "dictionary search";
|
|
|
|
|
url = "https://www.wordnik.com/words/%s";
|
|
|
|
|
keyword = "d";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "github go to repo";
|
|
|
|
|
url = "https://github.com/RoyDumblauskas/%s";
|
|
|
|
|
keyword = "repo";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "chatgpt";
|
|
|
|
|
url = "https://chatgpt.com";
|
|
|
|
|
keyword = "chat";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "github my repos";
|
|
|
|
|
url = "https://github.com/RoyDumblauskas?tab=repositories";
|
|
|
|
|
keyword = "repos";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "github profile";
|
|
|
|
|
url = "https://github.com/RoyDumblauskas";
|
|
|
|
|
keyword = "gh";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "drive 0";
|
|
|
|
|
url = "https://drive.google.com/drive/u/0/folders/1hMAgupSZvhAml0K1WhBi9sNINfvkhw0e";
|
|
|
|
|
keyword = "d0";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "drive 1";
|
|
|
|
|
url = "https://drive.google.com/drive/u/1";
|
|
|
|
|
keyword = "d1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "mail 1";
|
|
|
|
|
url = "https://mail.google.com/mail/u/1";
|
|
|
|
|
keyword = "m1";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "mail 0";
|
|
|
|
|
url = "https://mail.google.com/mail/u/0";
|
|
|
|
|
keyword = "m0";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "discord";
|
|
|
|
|
url = "https://discord.com/app";
|
|
|
|
|
keyword = "dis";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "downloads";
|
|
|
|
|
url = "file:///home/roy/dl/%s";
|
|
|
|
|
keyword = "dl";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "nix package search";
|
|
|
|
|
url = "https://search.nixos.org/packages?channel=unstable&query=%s";
|
|
|
|
|
keyword = "nixp";
|
|
|
|
|
}
|
2025-06-07 17:47:39 -05:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Configure nixvim
|
2025-06-06 11:12:31 -05:00
|
|
|
programs.nixvim = {
|
|
|
|
|
enable = true;
|
2025-08-16 14:15:11 -05:00
|
|
|
globals.mapleader = " ";
|
2025-06-06 11:12:31 -05:00
|
|
|
opts = {
|
|
|
|
|
number = true;
|
|
|
|
|
shiftwidth = 2;
|
|
|
|
|
tabstop = 2;
|
|
|
|
|
expandtab = true;
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-01 19:17:06 -06:00
|
|
|
keymaps = [
|
|
|
|
|
{
|
|
|
|
|
action = "<cmd>Neotree toggle<CR>";
|
|
|
|
|
key = "<leader>b";
|
|
|
|
|
mode = [ "n" ];
|
|
|
|
|
options.silent = true;
|
|
|
|
|
options.desc = "Toggle Neotree";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
action = "<C-w>h";
|
|
|
|
|
key = "<leader>h";
|
|
|
|
|
mode = [ "n" ];
|
|
|
|
|
options.silent = true;
|
|
|
|
|
options.desc = "Focus left";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
action = "<C-w>l";
|
|
|
|
|
key = "<leader>l";
|
|
|
|
|
mode = [ "n" ];
|
|
|
|
|
options.silent = true;
|
|
|
|
|
options.desc = "Focus right";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
action = "<C-w>j";
|
|
|
|
|
key = "<leader>j";
|
|
|
|
|
mode = [ "n" ];
|
|
|
|
|
options.silent = true;
|
|
|
|
|
options.desc = "Focus down";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
action = "<C-w>k";
|
|
|
|
|
key = "<leader>k";
|
|
|
|
|
mode = [ "n" ];
|
|
|
|
|
options.silent = true;
|
|
|
|
|
options.desc = "Focus up";
|
|
|
|
|
}
|
|
|
|
|
];
|
2025-06-09 15:00:39 -05:00
|
|
|
|
2025-06-06 11:12:31 -05:00
|
|
|
plugins = {
|
2025-06-09 11:26:20 -05:00
|
|
|
lualine.enable = true;
|
2025-12-07 18:58:37 -06:00
|
|
|
lsp-lines.enable = true;
|
|
|
|
|
lsp-format.enable = true;
|
|
|
|
|
|
|
|
|
|
lsp = {
|
2025-12-07 19:07:31 -06:00
|
|
|
enable = true;
|
|
|
|
|
inlayHints = true;
|
|
|
|
|
|
2025-12-07 18:58:37 -06:00
|
|
|
servers = {
|
2025-12-07 19:21:41 -06:00
|
|
|
html.enable = true;
|
|
|
|
|
lua_ls.enable = true;
|
|
|
|
|
nil_ls.enable = true;
|
|
|
|
|
ts_ls.enable = true;
|
|
|
|
|
marksman.enable = true;
|
|
|
|
|
pyright.enable = true;
|
2025-12-07 18:58:37 -06:00
|
|
|
gopls.enable = true;
|
2025-12-07 19:21:41 -06:00
|
|
|
terraformls.enable = true;
|
2025-12-07 18:58:37 -06:00
|
|
|
jsonls.enable = true;
|
2025-12-07 19:21:41 -06:00
|
|
|
yamlls.enable = true;
|
2025-12-07 19:07:31 -06:00
|
|
|
|
2025-12-07 18:58:37 -06:00
|
|
|
rust_analyzer = {
|
|
|
|
|
enable = true;
|
2025-12-07 19:07:31 -06:00
|
|
|
installRustc = true;
|
|
|
|
|
installCargo = true;
|
|
|
|
|
settings = {
|
2025-12-07 18:58:37 -06:00
|
|
|
cargo = {
|
|
|
|
|
features = "all";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-07 19:07:31 -06:00
|
|
|
keymaps = {
|
|
|
|
|
silent = true;
|
|
|
|
|
|
|
|
|
|
lspBuf = {
|
|
|
|
|
gd = {
|
|
|
|
|
action = "definition";
|
|
|
|
|
desc = "Goto Definition";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gr = {
|
|
|
|
|
action = "references";
|
|
|
|
|
desc = "Goto References";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gD = {
|
|
|
|
|
action = "declaration";
|
|
|
|
|
desc = "Goto Declaration";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gI = {
|
|
|
|
|
action = "implementation";
|
|
|
|
|
desc = "Goto Implementation";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gT = {
|
|
|
|
|
action = "type_definition";
|
|
|
|
|
desc = "Type Definition";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
K = {
|
|
|
|
|
action = "hover";
|
|
|
|
|
desc = "Hover";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"<leader>cw" = {
|
|
|
|
|
action = "workspace_symbol";
|
|
|
|
|
desc = "Workspace Symbol";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"<leader>r" = {
|
|
|
|
|
action = "rename";
|
|
|
|
|
desc = "Rename";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-07 19:21:41 -06:00
|
|
|
diagnostic = {
|
2025-12-07 19:07:31 -06:00
|
|
|
"<leader>cd" = {
|
|
|
|
|
action = "open_float";
|
|
|
|
|
desc = "Line Diagnostics";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"]d" = {
|
|
|
|
|
action = "goto_next";
|
|
|
|
|
desc = "Next Diagnostic";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"[d" = {
|
|
|
|
|
action = "goto_prev";
|
|
|
|
|
desc = "Previous Diagnostic";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-12-07 18:58:37 -06:00
|
|
|
};
|
2025-06-09 11:26:20 -05:00
|
|
|
|
|
|
|
|
neo-tree = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# neo-tree dependency
|
|
|
|
|
web-devicons.enable = true;
|
|
|
|
|
|
|
|
|
|
cmp = {
|
|
|
|
|
enable = true;
|
|
|
|
|
autoEnableSources = true;
|
|
|
|
|
settings = {
|
|
|
|
|
sources = [
|
2025-12-07 19:21:41 -06:00
|
|
|
{ name = "nvim_lsp"; }
|
|
|
|
|
{ name = "path"; }
|
|
|
|
|
{ name = "buffer"; }
|
|
|
|
|
{ name = "luasnip"; }
|
2025-06-09 11:26:20 -05:00
|
|
|
];
|
|
|
|
|
mapping = {
|
|
|
|
|
"<C-Space>" = "cmp.mapping.complete()";
|
|
|
|
|
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
|
|
|
|
|
"<C-e>" = "cmp.mapping.close()";
|
|
|
|
|
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
|
|
|
|
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
|
|
|
|
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
|
|
|
|
|
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-06-06 11:12:31 -05:00
|
|
|
};
|
|
|
|
|
extraConfigLua = ''
|
2025-12-07 19:21:41 -06:00
|
|
|
local _border = "rounded"
|
2025-06-06 11:12:31 -05:00
|
|
|
|
2025-12-07 19:21:41 -06:00
|
|
|
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(
|
|
|
|
|
vim.lsp.handlers.hover, {
|
|
|
|
|
border = _border
|
|
|
|
|
}
|
|
|
|
|
)
|
2025-06-06 11:12:31 -05:00
|
|
|
|
2025-12-07 19:21:41 -06:00
|
|
|
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(
|
|
|
|
|
vim.lsp.handlers.signature_help, {
|
|
|
|
|
border = _border
|
|
|
|
|
}
|
|
|
|
|
)
|
2025-06-06 11:12:31 -05:00
|
|
|
|
2025-12-07 19:21:41 -06:00
|
|
|
vim.diagnostic.config{
|
|
|
|
|
float={border=_border}
|
|
|
|
|
};
|
2025-06-06 11:12:31 -05:00
|
|
|
'';
|
|
|
|
|
|
2025-06-09 11:48:37 -05:00
|
|
|
colorschemes.catppuccin = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings.flavour = "frappe";
|
|
|
|
|
};
|
2025-06-06 11:12:31 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home.stateVersion = "24.11";
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
|
|
}
|