Skip to content

Commit

Permalink
misc(nix): make some configs nix modules
Browse files Browse the repository at this point in the history
  • Loading branch information
himkt committed Dec 7, 2024
1 parent bce219a commit 0de2058
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 141 deletions.
9 changes: 0 additions & 9 deletions git/bin/setup.sh

This file was deleted.

13 changes: 0 additions & 13 deletions git/config.d/config

This file was deleted.

19 changes: 0 additions & 19 deletions git/config.d/ignore

This file was deleted.

1 change: 1 addition & 0 deletions nix/config.d/home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
imports = [
./home/packages.nix
./programs/git.nix
./programs/wezterm.nix
./programs/zsh.nix
];

Expand Down
2 changes: 1 addition & 1 deletion nix/config.d/home/programs/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
};

userEmail = "[email protected]";
userName = "mako";
userName = "himkt";

ignores = [
".vim"
Expand Down
46 changes: 46 additions & 0 deletions nix/config.d/home/programs/wezterm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ ... }:

{
programs.wezterm = {
enable = true;

extraConfig = ''
local wezterm = require 'wezterm'
local config = {}
config.keys = {}
config.scrollback_lines = 9999999
-- Use the defaults as a base
config.hyperlink_rules = wezterm.default_hyperlink_rules()
-- Font
config.font = wezterm.font 'JetBrains Mono NL'
config.font_size = 16.0
-- https://wezfurlong.org/wezterm/colorschemes/g/index.html
config.color_scheme = 'Guezwhoz'
config.colors = {cursor_bg = 'cyan', cursor_fg = 'black'}
config.default_cursor_style = 'SteadyUnderline'
config.window_background_opacity = 0.8
-- skip confirmation prompt when quitting app
config.window_close_confirmation = 'NeverPrompt'
-- fullscreen shortcut
config.native_macos_fullscreen_mode = true
config.keys[1] = {
key = 'f',
mods = 'CMD|CTRL',
action = wezterm.action.ToggleFullScreen,
}
config.keys[2] = {
key = 'Enter',
mods = 'CMD',
action = wezterm.action.ToggleFullScreen,
}
return config
'';
};
}
3 changes: 0 additions & 3 deletions tmux/bin/setup.sh

This file was deleted.

51 changes: 0 additions & 51 deletions tmux/config.d/tmux.conf

This file was deleted.

4 changes: 0 additions & 4 deletions wezterm/bin/setup.sh

This file was deleted.

37 changes: 0 additions & 37 deletions wezterm/config.d/wezterm.lua

This file was deleted.

4 changes: 0 additions & 4 deletions zsh/bin/setup.sh

This file was deleted.

0 comments on commit 0de2058

Please sign in to comment.