From 5fccc0499b62a3dedd62b981241a8f3221a69766 Mon Sep 17 00:00:00 2001 From: foglar Date: Thu, 2 Jan 2025 18:37:14 +0100 Subject: [PATCH] fix script and update --- README.md | 18 ++++++++++++++++++ install.sh | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca11aca..094ab56 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,23 @@ ## Build and deploy +### Automatic installation + +- Use this one command on system with NixOS installed +- This will download script with installation commands + +```bash +nix-shell -p git --command "nix run --experimental-features 'nix-command flakes' git+https://git.foglar.tech/foglar/dotfiles" +``` + +### Manual installation + +- Build and install with ssmple command: + +```bash +nix run git+https://git.foglar.tech/foglar/dotfiles.git +``` + - simple build command for system using kogami profile ```bash @@ -172,4 +189,5 @@ nvim /nixos/system/packages/ssh-client.nix - [LibrePhoenix's Nix-Config](https://github.com/librephoenix/nixos-config) - if else options and modular control center - [YT video about modular control center](https://www.youtube.com/watch?v=H_Qct7TVB6o) - [YT video about if else options](https://www.youtube.com/watch?v=Qull6TMQm4Q) + - [YT video about install with one command](https://www.youtube.com/watch?v=20BN4gqHwaQ&t=2025s) - [Vimjoyer's videos](https://www.youtube.com/@vimjoyer) - all videos diff --git a/install.sh b/install.sh index 90350f9..960a94b 100755 --- a/install.sh +++ b/install.sh @@ -20,7 +20,7 @@ fi $EDITOR $SCRIPT_DIR/flake.nix profile=$(gum choose kogami ginoza) -sudo nixos-rebuild build --flake $SCRIPT_DIR#"''${profile}" --update +sudo nixos-rebuild build --flake $SCRIPT_DIR#"''${profile}" gum confirm "Do you want to switch to the new configuration?" && sudo nixos-rebuild switch --flake $SCRIPT_DIR#"${profile}" gum confirm "Do you want to reboot now?" && systemctl reboot || echo "Please reboot later, to switch to the new configuration"