From 92a36d87d99171693846e60bce349b2ded61667b Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Mon, 21 Jul 2025 18:30:16 +1000 Subject: [PATCH] modified: installer.nix --- installer.nix | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/installer.nix b/installer.nix index 414673b..0df1b52 100644 --- a/installer.nix +++ b/installer.nix @@ -97,20 +97,28 @@ users.users.root = { # environment.etc."home/nixos/.bashrc".mode = "0644"; # Write .bashrc into the user's home directory - environment.etc."bashrc-nixos".source = pkgs.writeText "bashrc-nixos" '' + # environment.etc."bashrc-nixos".source = pkgs.writeText "bashrc-nixos" '' + # if [ -n "$PS1" ] && [ ! -e ~/.auto_install_ran ]; then + # sudo /etc/auto-install.sh + # touch ~/.auto_install_ran + # fi + # ''; + + system.activationScripts.installBashProfile = { + text = '' + mkdir -p /home/nixos + cp -f ${config.environment.etc."bash_profile-nixos".source} /home/nixos/.bash_profile + chown nixos:nixos /home/nixos/.bash_profile + chmod 644 /home/nixos/.bash_profile + ''; + }; + + + environment.etc."bash_profile-nixos".source = pkgs.writeText "bash_profile-nixos" '' if [ -n "$PS1" ] && [ ! -e ~/.auto_install_ran ]; then sudo /etc/auto-install.sh touch ~/.auto_install_ran fi ''; - system.activationScripts.installBashrc = { - text = '' - mkdir -p /home/nixos - cp -f ${config.environment.etc."bashrc-nixos".source} /home/nixos/.bashrc - chown nixos:nixos /home/nixos/.bashrc - chmod 644 /home/nixos/.bashrc - ''; - }; - }