Add lingering, remove kill on exit, fix smallfetch, replace tmux with zellij
This commit is contained in:
parent
72d7b9d038
commit
43546073cf
6 changed files with 16 additions and 27 deletions
|
@ -14,8 +14,8 @@
|
|||
./nix-index
|
||||
./ranger
|
||||
./ssh
|
||||
./tmux
|
||||
./yt-dlp
|
||||
./zellij
|
||||
./zoxide
|
||||
./zsh
|
||||
];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
home.packages = with pkgs; with lib; with config.home; with config.xdg; [
|
||||
(writeScriptBin "smallfetch" ''
|
||||
#!/bin/sh
|
||||
fastfetch --config ${removePrefix "${homeDirectory}/" configHome}/fastfetch/small.jsonc
|
||||
fastfetch --config $HOME/${removePrefix "${homeDirectory}/" configHome}/fastfetch/small.jsonc
|
||||
'')
|
||||
];
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
mouse = true;
|
||||
terminal = "st-256color";
|
||||
historyLimit = 4096;
|
||||
baseIndex = 1;
|
||||
extraConfig = ''
|
||||
set -g status on
|
||||
set -g status-left ""
|
||||
set -g status-position bottom
|
||||
set -g status-right "#[bg=brightblack]#[fg=dark_purple] #T "
|
||||
set -g status-style "bg=black"
|
||||
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#T"
|
||||
|
||||
setw -g window-status-format "#[bg=brightmagenta]#[fg=black] #I #[bg=brightblack]#[fg=white] #W "
|
||||
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=black] #I #[bg=white]#[fg=black] #W "
|
||||
'';
|
||||
};
|
||||
}
|
13
modules/home/programs/terminal/zellij/default.nix
Normal file
13
modules/home/programs/terminal/zellij/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
attachExistingSession = true;
|
||||
};
|
||||
|
||||
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories =
|
||||
with lib; with config.home; with config.xdg; [
|
||||
"state/${removePrefix "${homeDirectory}/" cacheHome}/zellij"
|
||||
"state/${removePrefix "${homeDirectory}/" configHome}/zellij"
|
||||
];
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.logind = {
|
||||
killUserProcesses = true;
|
||||
powerKey = lib.mkIf config.system.desktop.enable "suspend";
|
||||
powerKeyLongPress = "reboot";
|
||||
};
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
users.users."${config.sysusers.main}" = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
linger = true;
|
||||
hashedPassword = config.secrets.accPass.main;
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../../../../hosts/tower/id_ed25519.pub
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue