diff options
| author | caley <u65487754@gmail.com> | 2026-06-25 15:59:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-25 15:59:45 +0200 |
| commit | c302bbb5c976558d6ed07e84b907fb602efe8cbb (patch) | |
| tree | f577388587867914248af757b3d08643aa717b1a | |
| parent | cb1b6d1049d5fd9cc0d3550e2b836d71248c3e8d (diff) | |
Update install.sh
| -rw-r--r-- | install.sh | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1 +1,14 @@ -big overhaul for the install script soon, i wouldn't use it if i wasn't me tho <3 +#!/bin/sh +dir=$(mktemp -d) +git clone https://github.com/cqley/dotfiles "$dir" +sudo rm -rf /etc/nixos +sudo cp -r "$dir/nixos" /etc/ +rm -rf "$dir" + +sudo nixos-generate-config +clear +printf "host?\n" +read -r host + +sudo mv /etc/nixos/hardware-configuration.nix "/etc/nixos/hosts/$host/" +sudo rm /etc/nixos/configuration.nix |
