formatting

Signed-off-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
2024-11-17 21:07:58 -05:00
parent f3e9f9e031
commit 5a9eafc05c
33 changed files with 310 additions and 264 deletions

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
w3m
];
@@ -114,11 +116,11 @@
vdirsyncer = {
enable = true;
auth = "basic";
collections = [ "default" "shared" ];
collections = ["default" "shared"];
};
khal = {
enable = true;
addresses = [ "michael@michaelthomson.dev" ];
addresses = ["michael@michaelthomson.dev"];
type = "discover";
};
};
@@ -142,12 +144,12 @@
vdirsyncer = {
enable = true;
auth = "basic";
collections = [ "default" ];
collections = ["default"];
};
khal = {
enable = true;
addresses = [ "michael@michaelthomson.dev" ];
collections = [ "default" ];
addresses = ["michael@michaelthomson.dev"];
collections = ["default"];
};
};
};

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs.git = {
enable = true;
userName = "Michael Thomson";

View File

@@ -1,5 +1,7 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
home.file.".config/i3/config".source = ./config;
}

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs.kitty = {
enable = true;
font = {

View File

@@ -1,6 +1,9 @@
{ inputs, pkgs, config, ... }:
{
inputs,
pkgs,
config,
...
}: {
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
@@ -185,18 +188,18 @@
"<C-y>" = "cmp.mapping.confirm { select = true }";
"<C-Space>" = "cmp.mapping.complete {}";
"<C-l>" = ''
cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { 'i', 's' })
cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { 'i', 's' })
'';
"<C-h>" = ''
cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { 'i', 's' })
cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { 'i', 's' })
'';
};
sources = [
@@ -234,7 +237,7 @@
enable = true;
settings = {
formatting = {
command = [ "alejandra" ];
command = ["alejandra"];
};
options = {
nix-darwin = {

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
pinentry-curses
];
@@ -11,7 +13,7 @@
};
password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp exts.pass-file exts.pass-import ]);
package = pkgs.pass.withExtensions (exts: [exts.pass-otp exts.pass-file exts.pass-import]);
settings = {
PASSWORD_STORE_DIR = "\${HOME}/.password-store";
};

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs.ssh = {
enable = true;
};

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
services = {
syncthing = {
enable = true;

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs = {
taskwarrior = {
enable = true;

View File

@@ -1,8 +1,10 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}:
# TODO: Remove the default shell and default-command once tmux sensibleOnTop fixes their shit
# ref: https://github.com/nix-community/home-manager/issues/5952
{
programs = {
tmux = {
@@ -16,28 +18,28 @@
tmuxPlugins.vim-tmux-navigator
];
extraConfig = ''
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
set-option -sa terminal-overrides ",xterm*:Tc"
set -s escape-time 0
set -g status-left-length 30 # could be any number
fg="#CBCCC6"
bg="#212732"
status_bg="#34455A"
border_fg="#70748C"
border_active_fg="#FECB6E"
status_left_bg="#FFA759"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
set-option -sa terminal-overrides ",xterm*:Tc"
set -s escape-time 0
set -g status-left-length 30 # could be any number
fg="#CBCCC6"
bg="#212732"
status_bg="#34455A"
border_fg="#70748C"
border_active_fg="#FECB6E"
status_left_bg="#FFA759"
set -g status-style "bg=$status_bg,fg=$fg"
set -g status-style "bg=$status_bg,fg=$fg"
set -g pane-border-style "bg=$bg,fg=$border_fg"
set -g pane-active-border-style "bg=$bg,fg=$border_active_fg"
set -g pane-border-style "bg=$bg,fg=$border_fg"
set -g pane-active-border-style "bg=$bg,fg=$border_active_fg"
set -g window-status-current-style "fg=$border_active_fg"
set -g window-status-style "fg=$fg"
set -g window-status-current-style "fg=$border_active_fg"
set -g window-status-style "fg=$fg"
set -gu default-command
set -g default-shell "$SHELL"
set -gu default-command
set -g default-shell "$SHELL"
'';
};
};

View File

@@ -1,55 +1,57 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs.wezterm = {
enable = true;
extraConfig = ''
return {
-- color_scheme = 'Ayu Dark (Gogh)',
font = wezterm.font('JetBrainsMono Nerd Font'),
font_size = 16,
use_fancy_tab_bar = false,
native_macos_fullscreen_mode = false,
enable_scroll_bar = false,
window_decorations = "RESIZE",
enable_kitty_graphics = true,
hide_tab_bar_if_only_one_tab = true,
keys = {
{
key = 'n',
mods = 'CMD|SHIFT',
action = wezterm.action.ToggleFullScreen,
return {
-- color_scheme = 'Ayu Dark (Gogh)',
font = wezterm.font('JetBrainsMono Nerd Font'),
font_size = 16,
use_fancy_tab_bar = false,
native_macos_fullscreen_mode = false,
enable_scroll_bar = false,
window_decorations = "RESIZE",
enable_kitty_graphics = true,
hide_tab_bar_if_only_one_tab = true,
keys = {
{
key = 'n',
mods = 'CMD|SHIFT',
action = wezterm.action.ToggleFullScreen,
},
},
},
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
window_background_opacity = 1,
macos_window_background_blur = 0,
front_end = "WebGpu",
force_reverse_video_cursor = true,
colors = {
foreground = "#dcd7ba",
background = "#1f1f28",
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
window_background_opacity = 1,
macos_window_background_blur = 0,
front_end = "WebGpu",
force_reverse_video_cursor = true,
colors = {
foreground = "#dcd7ba",
background = "#1f1f28",
cursor_bg = "#c8c093",
cursor_fg = "#c8c093",
cursor_border = "#c8c093",
cursor_bg = "#c8c093",
cursor_fg = "#c8c093",
cursor_border = "#c8c093",
selection_fg = "#c8c093",
selection_bg = "#2d4f67",
selection_fg = "#c8c093",
selection_bg = "#2d4f67",
scrollbar_thumb = "#16161d",
split = "#16161d",
scrollbar_thumb = "#16161d",
split = "#16161d",
ansi = { "#090618", "#c34043", "#76946a", "#c0a36e", "#7e9cd8", "#957fb8", "#6a9589", "#c8c093" },
brights = { "#727169", "#e82424", "#98bb6c", "#e6c384", "#7fb4ca", "#938aa9", "#7aa89f", "#dcd7ba" },
indexed = { [16] = "#ffa066", [17] = "#ff5d62" },
},
}
ansi = { "#090618", "#c34043", "#76946a", "#c0a36e", "#7e9cd8", "#957fb8", "#6a9589", "#c8c093" },
brights = { "#727169", "#e82424", "#98bb6c", "#e6c384", "#7fb4ca", "#938aa9", "#7aa89f", "#dcd7ba" },
indexed = { [16] = "#ffa066", [17] = "#ff5d62" },
},
}
'';
};
}

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs = {
zathura = {
enable = true;

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs = {
zoxide = {
enable = true;

View File

@@ -1,7 +1,8 @@
{ pkgs, config, ... }:
{
pkgs,
config,
...
}: {
programs = {
fzf = {
enable = true;