This commit is contained in:
Sridhar Ratnakumar 2025-08-27 10:20:25 -04:00
parent 27eab309ce
commit 4e14fa6512
11 changed files with 0 additions and 1779 deletions

View file

@ -1,29 +0,0 @@
{ config, pkgs, lib, ... }:
{
options = {
my.helix = {
markdown.enable = lib.mkEnableOption "Enable markdown support" // { default = true; };
};
};
config.programs.helix = {
enable = true;
extraPackages = lib.optional config.my.helix.markdown.enable pkgs.marksman;
settings = {
theme = "snazzy";
editor.true-color = true;
keys = {
insert.j.j = "normal_mode";
# Shortcut to save file, in any mode.
insert."C-s" = [ ":write" "normal_mode" ];
normal."C-s" = ":write";
};
editor.lsp = {
display-messages = true;
display-inlay-hints = true;
display-signature-help-docs = true;
};
};
};
}

View file

@ -1,23 +0,0 @@
{
# Better terminal, with good rendering.
programs.kitty = {
enable = true;
# Pick "name" from https://github.com/kovidgoyal/kitty-themes/blob/master/themes.json
theme = "Tokyo Night";
font = {
name = "Monaco";
size = 14;
};
keybindings = {
"kitty_mod+e" = "kitten hints"; # https://sw.kovidgoyal.net/kitty/kittens/hints/
};
settings = {
# https://github.com/kovidgoyal/kitty/issues/371#issuecomment-1095268494
# mouse_map = "left click ungrabbed no-op";
# Ctrl+Shift+click to open URL.
confirm_os_window_close = "0";
# https://github.com/kovidgoyal/kitty/issues/847
macos_option_as_alt = "yes";
};
};
}

View file

@ -1,11 +0,0 @@
{ pkgs, ... }:
{
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
};
}

View file

@ -1,25 +0,0 @@
{ pkgs, ... }:
# TODO: Upstream as home-manager module: https://github.com/nix-community/home-manager/issues/2890
#
# FIXME: Powershell launch is quite slow, on macOS. So not using it as default shell.
{
home.packages = with pkgs; [
powershell
];
home.file.".config/powershell/Microsoft.PowerShell_profile.ps1".text = ''
$Env:PATH += ":/etc/profiles/per-user/''${Env:USER}/bin"
$Env:PATH += ":/run/current-system/sw/bin/"
$Env:PATH += ":/Applications/Docker.app/Contents/Resources/bin/"
# starship
Invoke-Expression (&starship init powershell)
# zoxide
Invoke-Expression (& {
$hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' }
(zoxide init --hook $hook powershell | Out-String)
})
'';
}

View file

@ -1,5 +0,0 @@
{
programs.rio = {
enable = true;
};
}

View file

@ -1,7 +0,0 @@
{
programs.wezterm = {
enable = true;
# https://alexplescan.com/posts/2024/08/10/wezterm/
extraConfig = builtins.readFile ./wezterm.lua;
};
}

View file

@ -1,16 +0,0 @@
return {
font = wezterm.font("Monaspace Argon"),
color_scheme = 'Tokyo Night',
window_decorations = 'RESIZE',
keys = {
-- Emulate other programs (Zed, VSCode, ...)
{
key = 'P',
mods = 'CMD|SHIFT',
action = wezterm.action.ActivateCommandPalette,
},
},
-- Workaround for https://github.com/NixOS/nixpkgs/issues/336069#issuecomment-2299008280
-- Remove later.
front_end = "WebGpu"
}

View file

@ -1,56 +0,0 @@
# https://github.com/nix-community/home-manager/blob/master/modules/programs/zed-editor.nix
{
home.file.".config/zed/themes".source = ./themes;
programs.zed-editor = {
enable = true;
# https://github.com/zed-industries/extensions/tree/main/extensions
extensions = [
"just"
"toml"
"nix"
];
userSettings = {
imports = [ ./remote-projects.nix ];
vim_mode = true;
base_keymap = "VSCode";
soft_wrap = "editor_width";
tab_size = 2;
# direnv
load_direnv = "shell_hook";
languages.Nix.language_servers = [ "nixd" "!nil" ]; # Force use of nixd over nil
lsp =
let
useDirenv = { binary.path_lookup = true; };
in
{
haskell = useDirenv;
rust_analyzer = useDirenv;
# FIXME: This won't work unless Zed is started inside of direnv shell.
nixd = useDirenv;
};
# Look & feel
ui_font_size = 16;
ui_font_family = "Cascadia Code";
buffer_font_size = 14;
theme = {
mode = "system";
light = "Catppuccin Mocha";
dark = "One Dark";
};
# Layout
outline_panel = {
dock = "right";
};
project_panel = {
dock = "right";
};
};
};
}

View file

@ -1,10 +0,0 @@
{
ssh_connections = [
{
host = "pureintent";
projects = [
"~/code/ny/nammayatri"
];
}
];
}

File diff suppressed because it is too large Load diff

View file

@ -3,16 +3,7 @@
./all/bash.nix
./all/zsh.nix
./all/vscode-server.nix
# ./all/emacs.nix
# ./all/obs.nix
# ./all/zed
# ./all/obs.nix
# Terms
# ./all/rio.nix
# ./all/wezterm
./all/nushell
./all/ghostty.nix # Install it anyway for TERM to work on VMs
# ./all/kitty.nix
];
}