From fbcac55c32fdcaeff0ebe2b534fd220eadd78ca6 Mon Sep 17 00:00:00 2001 From: MK Date: Sun, 12 Feb 2023 15:49:57 +0100 Subject: [PATCH] Update 'nixconf.sh' --- nixconf.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixconf.sh b/nixconf.sh index d9ad5fc..b9034b0 100644 --- a/nixconf.sh +++ b/nixconf.sh @@ -1,5 +1,7 @@ #!/bin/bash +#Wlan password: +pw="enter password here" #nix-shell -p git echo "==================================================" echo "replacing config" @@ -10,8 +12,9 @@ git clone https://dev.spittank.org/MK/NixConfig.git cp /etc/nixos/NixConfig/configuration.nix /etc/nixos/ rm -r /etc/nixos/NixConfig/ echo "==================================================" -read -p "name the device number" number sed -i "s/nixoslaptop/nixoslaptop$number/g" configuration.nix +read -p "name the device number" number +sed -i "s/xxxYYYxxx/$pw/g" configuration.nix echo "==================================================" echo "generating config" echo "=================================================="