Archived
updated
This commit is contained in:
+13
@@ -27,6 +27,19 @@
|
||||
environment.etc."git-credentials".text =
|
||||
"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;
|
||||
|
||||
|
||||
@@ -12,12 +12,4 @@
|
||||
# boot.kernelParams = [
|
||||
# "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
|
||||
'';
|
||||
}
|
||||
@@ -20,13 +20,5 @@
|
||||
# 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;
|
||||
}
|
||||
Reference in New Issue
Block a user