Update 'nixconf.sh'
This commit is contained in:
parent
d2fefb7e5d
commit
fbcac55c32
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#Wlan password:
|
||||||
|
pw="enter password here"
|
||||||
#nix-shell -p git
|
#nix-shell -p git
|
||||||
echo "=================================================="
|
echo "=================================================="
|
||||||
echo "replacing config"
|
echo "replacing config"
|
||||||
|
@ -10,8 +12,9 @@ git clone https://dev.spittank.org/MK/NixConfig.git
|
||||||
cp /etc/nixos/NixConfig/configuration.nix /etc/nixos/
|
cp /etc/nixos/NixConfig/configuration.nix /etc/nixos/
|
||||||
rm -r /etc/nixos/NixConfig/
|
rm -r /etc/nixos/NixConfig/
|
||||||
echo "=================================================="
|
echo "=================================================="
|
||||||
read -p "name the device number" number
|
|
||||||
sed -i "s/nixoslaptop/nixoslaptop$number/g" configuration.nix
|
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 "=================================================="
|
||||||
echo "generating config"
|
echo "generating config"
|
||||||
echo "=================================================="
|
echo "=================================================="
|
||||||
|
|
Loading…
Reference in a new issue