Skip to content

Commit

Permalink
Setup tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasl-dev committed Oct 31, 2024
1 parent 1a05f0f commit d53dede
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
9 changes: 8 additions & 1 deletion home/lukas/development.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
enableZshIntegration = true;
};

programs.tmux = {
enable = true;
extraConfig = ''
set -g default-terminal "alacritty"
set-option -sa terminal-overrides ",alacritty*:Tc"
'';
};

home.packages = [
# nix-related
pkgs.nixd
Expand Down Expand Up @@ -76,7 +84,6 @@
pkgs-unstable.ocamlPackages.lsp
pkgs-unstable.ocamlPackages.ocamlformat
pkgs-unstable.ocamlPackages.utop
pkgs-unstable.ocamlPackages.dune

# miscellaneous
pkgs.d2
Expand Down
16 changes: 16 additions & 0 deletions home/lukas/terminal.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{ pkgs, ... }:

{
# shell:
# program: /bin/zsh
# args:
# - -l
# - -c
# - "tmux attach || tmux"
programs.alacritty = {
enable = true;
settings = {
Expand All @@ -8,6 +16,14 @@
y = 8;
};
};
shell = {
program = "${pkgs.zsh}/bin/zsh";
args = [
"-l"
"-c"
"tmux attach || tmux"
];
};
};
};
}
3 changes: 2 additions & 1 deletion hosts/base/unspecific/users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
users.users = {
root = {
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ (builtins.readFile ../../../dots/ssh/id_ed25519.pub) ];
};

Expand All @@ -15,7 +16,7 @@
"wheel"
"docker"
];
shell = pkgs.nushell;
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ (builtins.readFile ../../../dots/ssh/id_ed25519.pub) ];
};
};
Expand Down
5 changes: 0 additions & 5 deletions hosts/specific/sirius/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,4 @@
virtualisation.oci-containers = {
backend = "docker";
};

users.users = {
root.shell = lib.mkForce pkgs.zsh;
lukas.shell = lib.mkForce pkgs.zsh;
};
}

0 comments on commit d53dede

Please sign in to comment.