From 45c3c766cb53dbf28055e0d7c3a484fecc516659 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 13 Nov 2025 11:54:03 +0100 Subject: [PATCH] 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. --- systems/nixbuild.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/systems/nixbuild.nix b/systems/nixbuild.nix index 802e049..3bdb74e 100644 --- a/systems/nixbuild.nix +++ b/systems/nixbuild.nix @@ -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