Compare commits
2 Commits
31c72186ad
...
tmux
| Author | SHA1 | Date | |
|---|---|---|---|
| 198cfbc9e4 | |||
| 02c3366bff |
@@ -8,7 +8,6 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
<home-manager/nixos>
|
|
||||||
];
|
];
|
||||||
|
|
||||||
## Commented out as defined at the end of the page
|
## Commented out as defined at the end of the page
|
||||||
@@ -95,8 +94,6 @@
|
|||||||
extraGroups = [ "networkmanager" "wheel" "docker" "dialout" ];
|
extraGroups = [ "networkmanager" "wheel" "docker" "dialout" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.l-wyatt = import /home/l-wyatt/.config/home-manager/home.nix;
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }: {
|
outputs = { self, nixpkgs, home-manager, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
yourhostname = nixpkgs.lib.nixosSystem {
|
nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.yourusername = import ./home.nix;
|
home-manager.users.l-wyatt = import ./home.nix;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -81,9 +81,9 @@
|
|||||||
if [ -n "$NIX_PROJECT_SHELL" ]; then
|
if [ -n "$NIX_PROJECT_SHELL" ]; then
|
||||||
PROMPT="($NIX_PROJECT_SHELL)$PROMPT"
|
PROMPT="($NIX_PROJECT_SHELL)$PROMPT"
|
||||||
fi
|
fi
|
||||||
# Only start Zellij if we're in an interactive terminal
|
# Only start tmux if we're in an interactive terminal
|
||||||
if [ -z "$ZELLIJ" ] && [ "$TERM" != "linux" ]; then
|
if [ -z "$TMUX" ] && [ "$TERM" != "linux" ]; then
|
||||||
exec zellij
|
exec tmux
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -102,16 +102,31 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable zellij (terminal multiplexing)
|
# Enable tmux (terminal multiplexing)
|
||||||
programs.zellij = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Optional: write your own config to ~/.config/zellij/config.kdl
|
# Basic tmux configuration
|
||||||
settings = {
|
terminal = "screen-256color";
|
||||||
theme = "default";
|
historyLimit = 10000;
|
||||||
pane_frames = true;
|
keyMode = "vi";
|
||||||
default_layout = "compact";
|
mouse = true;
|
||||||
};
|
|
||||||
|
extraConfig = ''
|
||||||
|
# Set prefix to Ctrl-a instead of Ctrl-b
|
||||||
|
unbind C-b
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
|
# Split panes using | and -
|
||||||
|
bind | split-window -h
|
||||||
|
bind - split-window -v
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
|
# Reload config file
|
||||||
|
bind r source-file ~/.config/tmux/tmux.conf
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Neovim management
|
# Neovim management
|
||||||
|
|||||||
Reference in New Issue
Block a user