home-manager backup and switch automatically in installer

This commit is contained in:
nomadics9 2024-11-08 10:57:47 +03:00
parent 47d14ddb4e
commit c6f1f73d2f
3 changed files with 51 additions and 45 deletions

View file

@ -44,11 +44,11 @@
"dotfiles": {
"flake": false,
"locked": {
"lastModified": 1730844540,
"narHash": "sha256-OL0TyXU/oYPplHg7t3OT/acL4oqhjmUJMgD+cX9CAlg=",
"lastModified": 1730924096,
"narHash": "sha256-dGmEcwL5L8X8lDNxDYkpIORTOI+H+bfz5tj992sIImc=",
"ref": "refs/heads/main",
"rev": "efcb87e599560b6cd86cbfc861108528257bdcbc",
"revCount": 52,
"rev": "e52d84e1eaca3dc19827df84590af70d08afb1e0",
"revCount": 56,
"type": "git",
"url": "https://github.com/nomadics9/dotfiles.git"
},

View file

@ -91,6 +91,11 @@
nmd.mov {
reverse_proxy localhost:3001
}
www.nmd.mov {
root * /var/www/goaccess
file_server

View file

@ -183,7 +183,8 @@ echo -e "$GREEN Configuration has been updated with your preferences $ENDCOLOR"
sleep 2
git add .
nixos-rebuild boot --flake .#unkown
nixos-rebuild switch --flake .#unkown
home-manager switch -b --flake .#${new_user}@${new_hostname}
echo -e "$GREEN Reboot after completion your initial password is 4321 $ENDCOLOR"