Compare commits

..

2 Commits

Author SHA1 Message Date
7e41ce1049 home/zsh: run tmux in systemd user instead of session scope 2024-01-15 15:53:44 +01:00
ccd346efdb home/packages: add nixpkgs-fmt 2024-01-15 14:49:54 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -50,6 +50,7 @@
neovide neovide
ngspice ngspice
nix-init nix-init
nixpkgs-fmt
nodePackages.peerflix nodePackages.peerflix
openocd openocd
openscad openscad

View File

@@ -101,7 +101,7 @@
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
TMUX_EXE="${pkgs.tmux}/bin/tmux" TMUX_EXE="${pkgs.tmux}/bin/tmux"
$TMUX_EXE attach-session -t $USER || $TMUX_EXE new-session -s $USER systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
fi fi
''; '';
}; };