From c302bbb5c976558d6ed07e84b907fb602efe8cbb Mon Sep 17 00:00:00 2001 From: caley Date: Thu, 25 Jun 2026 15:59:45 +0200 Subject: Update install.sh --- install.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 986b1ab..81923f7 100644 --- a/install.sh +++ b/install.sh @@ -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 -- cgit v1.3.1