Fix various bugs.
This commit is contained in:
parent
926c740a34
commit
105ecfea00
|
@ -0,0 +1,8 @@
|
|||
NixOS Installer
|
||||
|
||||
# Installation
|
||||
|
||||
$ sudo loadkeys de
|
||||
$ git clone https://git.dataprolet.de/dataprolet/NixOS-Installer.git
|
||||
$ cd nixos-installer
|
||||
$ sh install.sh
|
|
@ -40,10 +40,9 @@
|
|||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
plasma-browser-integration
|
||||
konsole
|
||||
];
|
||||
#environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
|
||||
#];
|
||||
|
||||
|
||||
|
||||
|
|
13
install.sh
13
install.sh
|
@ -34,9 +34,7 @@ IFS=$'\n'
|
|||
declare -a dsks=( $(lsblk -d | tail -n+2 | awk '{print $1" "$4}') )
|
||||
|
||||
# Select value on array.
|
||||
select dev in "${dsks[@]}"
|
||||
do
|
||||
|
||||
select dev in "${dsks[@]}"; do
|
||||
break
|
||||
done
|
||||
echo
|
||||
|
@ -44,9 +42,8 @@ echo
|
|||
# Separate values by spaces.
|
||||
IFS=' '
|
||||
|
||||
# Create new variable of selection.
|
||||
array=("${dev}")
|
||||
dev="${array[0]}"
|
||||
# Cut size from variable
|
||||
dev=${dev%% *}
|
||||
|
||||
clear
|
||||
|
||||
|
@ -107,7 +104,7 @@ echo
|
|||
|
||||
# Creating system partition.
|
||||
echo "Creating system partition."
|
||||
sudo parted "/dev/${dev}" -- mkpart 512MB 100%
|
||||
sudo parted "/dev/${dev}" -- mkpart root 512MB 100%
|
||||
echo
|
||||
|
||||
# Print partitions.
|
||||
|
@ -177,7 +174,7 @@ echo
|
|||
# Copy existing config
|
||||
sudo nixos-generate-config --root /mnt
|
||||
sudo mv /mnt/etc/nixos/configuration.nix /mnt/etc/nixos/configuration.nix.bak
|
||||
cp configuration.nix /mnt/etc/nixos
|
||||
sudo cp configuration.nix /mnt/etc/nixos
|
||||
|
||||
# Replace username in config
|
||||
sudo sed -i "s/username/${user}/g" /mnt/etc/nixos/configuration.nix
|
||||
|
|
Loading…
Reference in New Issue