style: reformat with nixfmt-rfc-style

This commit is contained in:
Felix Schröter 2024-05-26 16:45:38 +02:00
parent 5ad8bc1d56
commit 1c5d83d81e
Signed by: felschr
GPG key ID: 671E39E6744C807D
99 changed files with 2247 additions and 1334 deletions

View file

@ -1,7 +1,9 @@
{ config, pkgs, ... }:
let shellAliases = import ./aliases.nix;
in {
let
shellAliases = import ./aliases.nix;
in
{
programs.bash = {
enable = true;
inherit shellAliases;

View file

@ -12,7 +12,9 @@
./direnv.nix
];
programs.fzf = { enable = true; };
programs.fzf = {
enable = true;
};
home.file."dev/work/.env".text = ''
BROWSER=mullvad-browser-work

View file

@ -1,30 +1,34 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
with pkgs;
with lib; {
with lib;
{
# kitty terminal
programs.kitty = {
enable = true;
keybindings = let
vimKittyBinding = bind:
''kitten pass_keys.py neighboring_window ${bind} "^.* - nvim$"'';
in {
"ctrl+h" = vimKittyBinding "left ctrl+h";
"ctrl+j" = vimKittyBinding "bottom ctrl+j";
"ctrl+k" = vimKittyBinding "top ctrl+k";
"ctrl+l" = vimKittyBinding "right ctrl+l";
};
keybindings =
let
vimKittyBinding = bind: ''kitten pass_keys.py neighboring_window ${bind} "^.* - nvim$"'';
in
{
"ctrl+h" = vimKittyBinding "left ctrl+h";
"ctrl+j" = vimKittyBinding "bottom ctrl+j";
"ctrl+k" = vimKittyBinding "top ctrl+k";
"ctrl+l" = vimKittyBinding "right ctrl+l";
};
settings = {
allow_remote_control = "yes";
# single_instance = "yes";
listen_on = "unix:@mykitty";
scrollback_pager = ''
nvim -u NONE -c "syntax on" -c 'set ft=man nonumber nolist showtabline=0 foldcolumn=0 laststatus=0' -c "autocmd VimEnter * normal G" -c "map q :qa!<CR>" -c "set clipboard+=unnamedplus" -'';
scrollback_pager = ''nvim -u NONE -c "syntax on" -c 'set ft=man nonumber nolist showtabline=0 foldcolumn=0 laststatus=0' -c "autocmd VimEnter * normal G" -c "map q :qa!<CR>" -c "set clipboard+=unnamedplus" -'';
};
};
xdg.configFile."kitty/pass_keys.py".source =
"${vimPlugins.nvim-kitty-navigator}/kitty/pass_keys.py";
xdg.configFile."kitty/neighboring_window.py".source =
"${vimPlugins.nvim-kitty-navigator}/kitty/neighboring_window.py";
xdg.configFile."kitty/pass_keys.py".source = "${vimPlugins.nvim-kitty-navigator}/kitty/pass_keys.py";
xdg.configFile."kitty/neighboring_window.py".source = "${vimPlugins.nvim-kitty-navigator}/kitty/neighboring_window.py";
}

View file

@ -2,9 +2,11 @@
let
shellAliases = import ./aliases.nix;
aliasesStr = builtins.concatStringsSep "\n"
(pkgs.lib.mapAttrsToList (k: v: "alias ${k} = ${v}") shellAliases);
in {
aliasesStr = builtins.concatStringsSep "\n" (
pkgs.lib.mapAttrsToList (k: v: "alias ${k} = ${v}") shellAliases
);
in
{
programs.nushell = {
enable = true;
package = pkgs.unstable.nushell;

View file

@ -7,7 +7,9 @@
programs.zellij.settings = {
default_layout = "compact"; # or default
default_mode = "locked";
ui.pane_frames = { hide_session_name = true; };
ui.pane_frames = {
hide_session_name = true;
};
plugins = {
tab-bar.path = "tab-bar";
status-bar.path = "status-bar";
@ -15,5 +17,7 @@
};
};
home.sessionVariables = { ZELLIJ_AUTO_EXIT = "true"; };
home.sessionVariables = {
ZELLIJ_AUTO_EXIT = "true";
};
}

View file

@ -1,5 +1,3 @@
_:
{
programs.zoxide.enable = true;
}
{ programs.zoxide.enable = true; }

View file

@ -1,7 +1,9 @@
{ config, pkgs, ... }:
let shellAliases = import ./aliases.nix;
in {
let
shellAliases = import ./aliases.nix;
in
{
programs.zsh = {
enable = true;
# TODO is being renamed again in later 24.05 release
@ -24,8 +26,7 @@ in {
{
name = "zsh-history-substring-search";
src = zsh-history-substring-search;
file =
"share/zsh-history-substring-search/zsh-history-substring-search.zsh";
file = "share/zsh-history-substring-search/zsh-history-substring-search.zsh";
}
];
initExtra = ''