Add lingering, remove kill on exit, fix smallfetch, replace tmux with zellij

This commit is contained in:
Bun 2025-06-02 16:47:10 -04:00
parent 72d7b9d038
commit 43546073cf
6 changed files with 16 additions and 27 deletions

View file

@ -14,8 +14,8 @@
./nix-index ./nix-index
./ranger ./ranger
./ssh ./ssh
./tmux
./yt-dlp ./yt-dlp
./zellij
./zoxide ./zoxide
./zsh ./zsh
]; ];

View file

@ -3,7 +3,7 @@
home.packages = with pkgs; with lib; with config.home; with config.xdg; [ home.packages = with pkgs; with lib; with config.home; with config.xdg; [
(writeScriptBin "smallfetch" '' (writeScriptBin "smallfetch" ''
#!/bin/sh #!/bin/sh
fastfetch --config ${removePrefix "${homeDirectory}/" configHome}/fastfetch/small.jsonc fastfetch --config $HOME/${removePrefix "${homeDirectory}/" configHome}/fastfetch/small.jsonc
'') '')
]; ];

View file

@ -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 "
'';
};
}

View 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"
];
}

View file

@ -1,7 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
services.logind = { services.logind = {
killUserProcesses = true;
powerKey = lib.mkIf config.system.desktop.enable "suspend"; powerKey = lib.mkIf config.system.desktop.enable "suspend";
powerKeyLongPress = "reboot"; powerKeyLongPress = "reboot";
}; };

View file

@ -10,6 +10,7 @@
users.users."${config.sysusers.main}" = { users.users."${config.sysusers.main}" = {
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
linger = true;
hashedPassword = config.secrets.accPass.main; hashedPassword = config.secrets.accPass.main;
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [
../../../../hosts/tower/id_ed25519.pub ../../../../hosts/tower/id_ed25519.pub