mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-04 22:41:11 +00:00
update readme and tweak helix config
This commit is contained in:
parent
cdbd94e64e
commit
b270e1643c
67
README.md
67
README.md
@ -8,38 +8,38 @@ configuration may be difficult to translate to a non-Nix system.
|
|||||||
|
|
||||||
## System Features
|
## System Features
|
||||||
|
|
||||||
| Feature | Program | Configuration |
|
| Feature | Program | Configuration |
|
||||||
|----------------|-----------------------------------------------------|-----------------------------------------------|
|
|----------------|-----------------------------------------------------|-----------------------------------------------------------------------------------|
|
||||||
| OS | [NixOS](https://nixos.org) | [Link](./modules/nixos) |
|
| OS | [NixOS](https://nixos.org) | [Link](./platforms/nixos) |
|
||||||
| Display Server | [X11](https://www.x.org/wiki/) | [Link](./modules/nixos/graphical/xorg.nix) |
|
| Display Server | [X11](https://www.x.org/wiki/) | [Link](./platforms/nixos/modules/nmasur/profiles/gui.nix) |
|
||||||
| Compositor | [Picom](https://github.com/yshui/picom) | [Link](./modules/nixos/graphical/picom.nix) |
|
| Compositor | [Picom](https://github.com/yshui/picom) | [Link](./platforms/home-manager/modules/nmasur/presets/services/picom.nix) |
|
||||||
| Window Manager | [i3](https://i3wm.org/) | [Link](./modules/nixos/graphical/i3.nix) |
|
| Window Manager | [i3](https://i3wm.org/) | [Link](./platforms/home-manager/modules/nmasur/presets/services/i3.nix) |
|
||||||
| Panel | [Polybar](https://polybar.github.io/) | [Link](./modules/nixos/graphical/polybar.nix) |
|
| Panel | [Polybar](https://polybar.github.io/) | [Link](./platforms/home-manager/modules/nmasur/presets/services/polybar.nix) |
|
||||||
| Font | [Victor Mono](https://rubjo.github.io/victor-mono/) | [Link](./modules/nixos/graphical/fonts.nix) |
|
| Font | [Victor Mono](https://rubjo.github.io/victor-mono/) | [Link](./platforms/home-manager/modules/nmasur/presets/fonts.nix) |
|
||||||
| Launcher | [Rofi](https://github.com/davatorium/rofi) | [Link](./modules/nixos/graphical/rofi.nix) |
|
| Launcher | [Rofi](https://github.com/davatorium/rofi) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/rofi/default.nix) |
|
||||||
|
|
||||||
## User Features
|
## User Features
|
||||||
|
|
||||||
| Feature | Program | Configuration |
|
| Feature | Program | Configuration |
|
||||||
|--------------|----------------------------------------------------------------------------------|----------------------------------------------------|
|
|--------------|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
|
||||||
| Dotfiles | [Home-Manager](https://github.com/nix-community/home-manager) | [Link](./modules/common) |
|
| Dotfiles | [Home-Manager](https://github.com/nix-community/home-manager) | [Link](./platforms/home-manager) |
|
||||||
| Terminal | [Kitty](https://sw.kovidgoyal.net/kitty/) | [Link](./modules/common/applications/kitty.nix) |
|
| Terminal | [Ghostty](https://sw.kovidgoyal.net/kitty/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/ghostty.nix) |
|
||||||
| Shell | [Fish](https://fishshell.com/) | [Link](./modules/common/shell/fish) |
|
| Shell | [Fish](https://fishshell.com/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/fish.nix) |
|
||||||
| Shell Prompt | [Starship](https://starship.rs/) | [Link](./modules/common/shell/starship.nix) |
|
| Shell Prompt | [Starship](https://starship.rs/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/starship.nix) |
|
||||||
| Colorscheme | [Gruvbox](https://github.com/morhetz/gruvbox) | [Link](./colorscheme/gruvbox/default.nix) |
|
| Colorscheme | [Gruvbox](https://github.com/morhetz/gruvbox) | [Link](./colorscheme/gruvbox/default.nix) |
|
||||||
| Wallpaper | [Road](https://gitlab.com/exorcist365/wallpapers/-/blob/master/gruvbox/road.jpg) | [Link](./hosts/tempest/default.nix) |
|
| Wallpaper | [Road](https://gitlab.com/exorcist365/wallpapers/-/blob/master/gruvbox/road.jpg) | [Link](./hosts/x86_64-linux/tempest/default.nix) |
|
||||||
| Text Editor | [Neovim](https://neovim.io/) | [Link](./modules/common/neovim/config) |
|
| Text Editor | [Neovim](https://neovim.io/) | [Link](./pkgs/applications/editors/neovim/nmasur/neovim/package.nix) |
|
||||||
| Browser | [Firefox](https://www.mozilla.org/en-US/firefox/new/) | [Link](./modules/common/applications/firefox.nix) |
|
| Browser | [Firefox](https://www.mozilla.org/en-US/firefox/new/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/firefox.nix) |
|
||||||
| E-Mail | [Aerc](https://aerc-mail.org/) | [Link](./modules/common/mail/aerc.nix) |
|
| E-Mail | [Aerc](https://aerc-mail.org/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/aerc.nix) |
|
||||||
| File Manager | [Nautilus](https://wiki.gnome.org/action/show/Apps/Files) | [Link](./modules/common/applications/nautilus.nix) |
|
| File Manager | [Nautilus](https://wiki.gnome.org/action/show/Apps/Files) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/nautilus.nix) |
|
||||||
| PDF Reader | [Zathura](https://pwmt.org/projects/zathura/) | [Link](./modules/common/applications/media.nix) |
|
| PDF Reader | [Zathura](https://pwmt.org/projects/zathura/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/zathura.nix) |
|
||||||
| Video Player | [mpv](https://mpv.io/) | [Link](./modules/common/applications/media.nix) |
|
| Video Player | [mpv](https://mpv.io/) | [Link](./platforms/home-manager/modules/nmasur/presets/programs/mpv.nix) |
|
||||||
|
|
||||||
## macOS Features
|
## macOS Features
|
||||||
|
|
||||||
| Feature | Program | Configuration |
|
| Feature | Program | Configuration |
|
||||||
|----------|---------------------------------------------|--------------------------------------|
|
|----------|---------------------------------------------|--------------------------------------|
|
||||||
| Keybinds | [Hammerspoon](https://www.hammerspoon.org/) | [Link](./modules/darwin/hammerspoon) |
|
| Keybinds | [Hammerspoon](https://www.hammerspoon.org/) | [Link](./platforms/home-manager/modules/nmasur/presets/services/hammerspoon/) |
|
||||||
|
|
||||||
# Diagram
|
# Diagram
|
||||||
|
|
||||||
@ -51,15 +51,16 @@ configuration may be difficult to translate to a non-Nix system.
|
|||||||
|
|
||||||
This repo contains a few more elaborate elements of configuration.
|
This repo contains a few more elaborate elements of configuration.
|
||||||
|
|
||||||
- [Neovim config](./modules/common/neovim/default.nix) generated with Nix2Vim
|
- [Neovim config](./pkgs/applications/editors/neovim/nmasur/neovim/package.nix)
|
||||||
and source-controlled plugins, differing based on installed LSPs, for example.
|
generated with Nix2Vim and source-controlled plugins,
|
||||||
- [Caddy JSON](./modules/nixos/services/caddy.nix) file (routes, etc.) based
|
differing based on installed LSPs, for example. - [Caddy
|
||||||
dynamically on enabled services rendered with Nix.
|
JSON](./platforms/nixos/modules/nmasur/presets/services/caddy.nix) file (routes,
|
||||||
- [Grafana config](./modules/nixos/services/grafana.nix) rendered with Nix.
|
etc.) based dynamically on enabled services rendered with Nix. - [Grafana
|
||||||
- Custom [secrets deployment](./modules/nixos/services/secrets.nix) similar to
|
config](./platforms/nixos/modules/nmasur/presets/services/grafana/grafana.nix)
|
||||||
agenix.
|
rendered with Nix. - Custom [secrets
|
||||||
- Base16 [colorschemes](./colorscheme/) applied to multiple applications,
|
deployment](./platforms/nixos/modules/secrets.nix) similar to agenix. - Base16
|
||||||
including Firefox userChrome.
|
[colorschemes](./colorscheme/) applied to multiple applications, including
|
||||||
|
Firefox userChrome.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ TEXT_FILE="/tmp/ocr.txt"
|
|||||||
IMAGE_FILE="/tmp/ocr.png"
|
IMAGE_FILE="/tmp/ocr.png"
|
||||||
|
|
||||||
function notify-send() {
|
function notify-send() {
|
||||||
/usr/bin/osascript -e "display notification \"$2\" with title \"OCR\""
|
/usr/bin/osascript -e "display notification \"$2\" with title \"OCR\""
|
||||||
}
|
}
|
||||||
|
|
||||||
PATH="/usr/local/bin/:$PATH"
|
PATH="/usr/local/bin/:$PATH"
|
||||||
@ -32,8 +32,8 @@ STATUS=$?
|
|||||||
# specify /tmp/ocr.txt as the file path, tesseract would out the text to
|
# specify /tmp/ocr.txt as the file path, tesseract would out the text to
|
||||||
# /tmp/ocr.txt.txt
|
# /tmp/ocr.txt.txt
|
||||||
cd /tmp || {
|
cd /tmp || {
|
||||||
echo "Failed to jump to directory."
|
echo "Failed to jump to directory."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
tesseract "$IMAGE_FILE" "${TEXT_FILE//\.txt/}"
|
tesseract "$IMAGE_FILE" "${TEXT_FILE//\.txt/}"
|
||||||
|
|
||||||
@ -41,8 +41,8 @@ tesseract "$IMAGE_FILE" "${TEXT_FILE//\.txt/}"
|
|||||||
# of lines in the file
|
# of lines in the file
|
||||||
LINES=$(wc -l <$TEXT_FILE)
|
LINES=$(wc -l <$TEXT_FILE)
|
||||||
if [ "$LINES" -eq 0 ]; then
|
if [ "$LINES" -eq 0 ]; then
|
||||||
notify-send "ocr" "no text was detected"
|
notify-send "ocr" "no text was detected"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy text to clipboard
|
# Copy text to clipboard
|
||||||
|
@ -32,7 +32,7 @@ in
|
|||||||
userName = cfg.name;
|
userName = cfg.name;
|
||||||
userEmail = cfg.email;
|
userEmail = cfg.email;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
core.pager = "${pkgs.git}/share/git/contrib/diff-highlight/diff-highlight | less -F";
|
core.pager = "${pkgs.git}/share/git/contrib/diff-highlight/diff-highlight | less --no-init";
|
||||||
interactive.difffilter = "${pkgs.git}/share/git/contrib/diff-highlight/diff-highlight";
|
interactive.difffilter = "${pkgs.git}/share/git/contrib/diff-highlight/diff-highlight";
|
||||||
pager = {
|
pager = {
|
||||||
branch = "false";
|
branch = "false";
|
||||||
|
@ -45,12 +45,36 @@ in
|
|||||||
command = "${pkgs.fish-lsp}/bin/fish-lsp";
|
command = "${pkgs.fish-lsp}/bin/fish-lsp";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
language-server.yaml-language-server = {
|
||||||
|
command = lib.getExe pkgs.yaml-language-server;
|
||||||
|
};
|
||||||
|
|
||||||
|
language-server.marksman = {
|
||||||
|
command = lib.getExe pkgs.marksman;
|
||||||
|
};
|
||||||
|
|
||||||
|
language-server.bash-language-server = {
|
||||||
|
command = lib.getExe (
|
||||||
|
pkgs.bash-language-server.overrideAttrs {
|
||||||
|
buildInputs = [
|
||||||
|
pkgs.shellcheck
|
||||||
|
pkgs.shfmt
|
||||||
|
];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
language = [
|
language = [
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
language-servers = [ "nixd" ];
|
language-servers = [ "nixd" ];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "markdown";
|
||||||
|
auto-format = true;
|
||||||
|
language-servers = [ "marksman" ];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -65,6 +89,11 @@ in
|
|||||||
select = "underline";
|
select = "underline";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Text width
|
||||||
|
soft-wrap = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# View line numbers relative to the current cursors
|
# View line numbers relative to the current cursors
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
|
|
||||||
@ -226,10 +255,10 @@ in
|
|||||||
bg = config.theme.colors.base01;
|
bg = config.theme.colors.base01;
|
||||||
};
|
};
|
||||||
"ui.selection" = {
|
"ui.selection" = {
|
||||||
bg = config.theme.colors.base02;
|
bg = config.theme.colors.base01;
|
||||||
};
|
};
|
||||||
"ui.selection.primary" = {
|
"ui.selection.primary" = {
|
||||||
bg = config.theme.colors.base03;
|
bg = config.theme.colors.base02;
|
||||||
};
|
};
|
||||||
"ui.statusline" = {
|
"ui.statusline" = {
|
||||||
fg = config.theme.colors.base04;
|
fg = config.theme.colors.base04;
|
||||||
|
@ -36,6 +36,7 @@ in
|
|||||||
homebrew.casks = [
|
homebrew.casks = [
|
||||||
"scroll-reverser" # Different scroll style for mouse vs. trackpad
|
"scroll-reverser" # Different scroll style for mouse vs. trackpad
|
||||||
"notunes" # Don't launch Apple Music with the play button
|
"notunes" # Don't launch Apple Music with the play button
|
||||||
|
"topnotch" # Darkens the menu bar to complete black
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user