Skip to content

Commit

Permalink
style: format nix code with nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
2giosangmitom committed Aug 8, 2024
1 parent 6d748cf commit 54fe3cc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
nixfmt-rfc-style
];
};
formatter = pkgs.nixfmt-rfc-style;
};
};
}
3 changes: 3 additions & 0 deletions home/programs/alacritty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ in
enable = true;
settings = {
shell = "tmux";
env = {
TERM = "xterm-256color";
};
font = {
size = 10;
normal = {
Expand Down
27 changes: 25 additions & 2 deletions home/programs/tmux.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ config, lib, ... }:
{
config,
lib,
pkgs-unstable,
pkgs,
...
}:
let
cfg = config.dotfiles.tmux;
in
Expand All @@ -10,9 +16,26 @@ in
config = lib.mkIf cfg.enable {
programs.tmux = {
enable = true;
package = pkgs-unstable.tmux;
prefix = "C-a";
terminal = "screen-256color";
shell = "zsh";
shell = "${pkgs.zsh}/bin/zsh";
customPaneNavigationAndResize = true;
mouse = true;
extraConfig = ''
set -as terminal-features ",xterm-256color:RGB"
set -s escape-time 10
set -sg repeat-time 600
set -s focus-events on
set -g status-left-style NONE
set -g status-right-style NONE
set -q -g status-utf8 on
setw -q -g utf8 on
setw -g automatic-rename on
set -g renumber-windows on
set -g display-panes-time 800
set -g display-time 1000
'';
};
};
}

0 comments on commit 54fe3cc

Please sign in to comment.