This commit is contained in:
2026-07-19 13:29:35 +10:00
parent 02ea1929e5
commit 9db659d54e
3 changed files with 13 additions and 16 deletions
+13
View File
@@ -27,6 +27,19 @@
environment.etc."git-credentials".text = environment.etc."git-credentials".text =
"https://beatzaplenty:294be99829703536e02fdeed893137f1d8d96b76@gitea.lan.ddnsgeek.com"; "https://beatzaplenty:294be99829703536e02fdeed893137f1d8d96b76@gitea.lan.ddnsgeek.com";
# Run the installer on first login. Previously this copied an /etc file
# into the nixos user's ~/.bash_profile via an activation script that
# got dropped in a refactor (and only ever worked for that one user
# anyway) — loginShellInit is NixOS's native hook for this, applies to
# any user's login shell (root included), and needs no home-directory
# file-copying/chown.
programs.bash.loginShellInit = ''
if [ -n "$PS1" ] && [ ! -e "$HOME/.auto_install_ran" ]; then
sudo /etc/auto-install.sh
touch "$HOME/.auto_install_ran"
fi
'';
services.openssh.enable = true; services.openssh.enable = true;
-8
View File
@@ -12,12 +12,4 @@
# boot.kernelParams = [ # boot.kernelParams = [
# "console=ttyS0,19200n8" # "console=ttyS0,19200n8"
# ]; # ];
# Run installer when logging in (same pattern as proxmox-lxc.nix)
environment.etc."bash_profile-nixos".text = ''
if [ -n "$PS1" ] && [ ! -e ~/.auto_install_ran ]; then
sudo /etc/auto-install.sh
touch ~/.auto_install_ran
fi
'';
} }
-8
View File
@@ -20,13 +20,5 @@
# mode = "0755"; # mode = "0755";
# }; # };
# Run installer when logging in
environment.etc."bash_profile-nixos".text = ''
if [ -n "$PS1" ] && [ ! -e ~/.auto_install_ran ]; then
sudo /etc/auto-install.sh
touch ~/.auto_install_ran
fi
'';
# networking.useDHCP = true; # networking.useDHCP = true;
} }