chore(nixbuild): remove deprecated shellInit for SSH sessions
- Deleted `environment.shellInit` previously used for Nix path initialization in SSH sessions. - Path initialization is now fully handled by `programs.fish.loginShellInit` for consistency across environments.
This commit is contained in:
parent
18844d662b
commit
45c3c766cb
1 changed files with 1 additions and 9 deletions
|
|
@ -1,6 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
with lib.metacfg;
|
||||
{ ... }:
|
||||
{
|
||||
nix.distributedBuilds = true;
|
||||
|
||||
|
|
@ -44,12 +42,6 @@ with lib.metacfg;
|
|||
};
|
||||
|
||||
# Ensure Nix is in PATH for SSH sessions
|
||||
environment.shellInit = ''
|
||||
if [ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.fish.loginShellInit = ''
|
||||
set -gx PATH /nix/var/nix/profiles/default/bin $PATH
|
||||
set -gx PATH /run/current-system/sw/bin $PATH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue